home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1993…ch: Other People's Memory / ADC Developer CD (1993-03) (''Other People's Memory'')_iso / Dev.CD Mar 93.iso / Technical Documentation / Mac Tech Notes (DocViewer) / TN-Operating System < prev    next >
MacBinary  |  1993-01-05  |  116.3 KB  |  [ONLN/HLX2]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
100% file MacBinary II, inited, Tue Dec 22 11:32:42 1992, modified Tue Jan 5 10:02:14 1993, creator 'HLX2', type 'ONLN', 114839 bytes "TN-Operating System" , at 0x1c117 3920 bytes resource default (weak)
99% file data default
100% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[ONLN]
macFileCreator[HLX2]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 13 54 4e 2d 4f 70 65 | 72 61 74 69 6e 67 20 53 |..TN-Ope|rating S|
|00000010| 79 73 74 65 6d 00 00 00 | 00 00 00 00 00 00 00 00 |ystem...|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 4f 4e 4c 4e 48 4c 58 | 32 01 00 00 00 00 00 00 |.ONLNHLX|2.......|
|00000050| 00 00 00 00 01 c0 97 00 | 00 0f 50 a7 5c f3 aa a7 |........|..P.\...|
|00000060| 6f 53 76 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |oSv.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 2f 20 00 00 |........|..../ ..|
|00000080| 43 6f 6d 6d 61 6e 64 2d | 53 68 69 66 74 2d 4e 75 |Command-|Shift-Nu|
|00000090| 6d 62 65 72 20 4b 65 79 | 73 0d 4f 70 65 72 61 74 |mber Key|s.Operat|
|000000a0| 69 6e 67 20 53 79 73 74 | 65 6d 09 4d 2e 4f 53 2e |ing Syst|em.M.OS.|
|000000b0| 43 6f 6d 6d 61 6e 64 53 | 68 69 66 74 4b 65 79 73 |CommandS|hiftKeys|
|000000c0| 0d 52 65 76 69 73 65 64 | 20 62 79 3a 09 47 69 6e |.Revised| by:.Gin|
|000000d0| 67 65 72 20 4a 65 72 6e | 69 67 61 6e 09 4d 61 72 |ger Jern|igan.Mar|
|000000e0| 63 68 2c 20 20 31 39 38 | 38 0d 57 72 69 74 74 65 |ch, 198|8.Writte|
|000000f0| 6e 20 62 79 3a 09 48 61 | 72 76 65 79 20 41 6c 63 |n by:.Ha|rvey Alc|
|00000100| 61 62 65 73 09 4d 61 72 | 63 68 20 2c 31 39 38 35 |abes.Mar|ch ,1985|
|00000110| 0d 49 6e 20 74 68 65 20 | 73 74 61 6e 64 61 72 64 |.In the |standard|
|00000120| 20 73 79 73 74 65 6d 2c | 20 74 68 65 72 65 20 61 | system,| there a|
|00000130| 72 65 20 74 77 6f 20 43 | 6f 6d 6d 61 6e 64 2d 53 |re two C|ommand-S|
|00000140| 68 69 66 74 2d 6e 75 6d | 62 65 72 20 6b 65 79 20 |hift-num|ber key |
|00000150| 63 6f 6d 62 69 6e 61 74 | 69 6f 6e 73 20 74 68 61 |combinat|ions tha|
|00000160| 74 20 61 72 65 20 61 75 | 74 6f 6d 61 74 69 63 61 |t are au|tomatica|
|00000170| 6c 6c 79 20 63 61 70 74 | 75 72 65 64 20 61 6e 64 |lly capt|ured and|
|00000180| 20 70 72 6f 63 65 73 73 | 65 64 20 62 79 20 47 65 | process|ed by Ge|
|00000190| 74 4e 65 78 74 45 76 65 | 6e 74 2e 20 54 68 65 20 |tNextEve|nt. The |
|000001a0| 63 6f 6d 62 69 6e 61 74 | 69 6f 6e 73 20 61 72 65 |combinat|ions are|
|000001b0| 3a 0d 43 6f 6d 6d 61 6e | 64 2d 53 68 69 66 74 2d |:.Comman|d-Shift-|
|000001c0| 31 09 45 6a 65 63 74 20 | 69 6e 74 65 72 6e 61 6c |1.Eject |internal|
|000001d0| 20 64 69 73 6b 0d 43 6f | 6d 6d 61 6e 64 2d 53 68 | disk.Co|mmand-Sh|
|000001e0| 69 66 74 2d 32 09 45 6a | 65 63 74 20 65 78 74 65 |ift-2.Ej|ect exte|
|000001f0| 72 6e 61 6c 20 64 69 73 | 6b 0d 4e 75 6d 62 65 72 |rnal dis|k.Number|
|00000200| 73 20 66 72 6f 6d 20 33 | 20 74 6f 20 39 20 61 72 |s from 3| to 9 ar|
|00000210| 65 20 61 6c 73 6f 20 63 | 61 70 74 75 72 65 64 20 |e also c|aptured |
|00000220| 62 79 20 47 65 74 4e 65 | 78 74 45 76 65 6e 74 2c |by GetNe|xtEvent,|
|00000230| 20 62 75 74 20 61 72 65 | 20 70 72 6f 63 65 73 73 | but are| process|
|00000240| 65 64 20 62 79 20 63 61 | 6c 6c 69 6e 67 20 d4 46 |ed by ca|lling .F|
|00000250| 4b 45 59 d5 20 72 65 73 | 6f 75 72 63 65 73 2e 20 |KEY. res|ources. |
|00000260| 59 6f 75 20 63 61 6e 20 | 69 6d 70 6c 65 6d 65 6e |You can |implemen|
|00000270| 74 20 79 6f 75 72 20 6f | 77 6e 20 61 63 74 69 6f |t your o|wn actio|
|00000280| 6e 73 20 66 6f 72 20 43 | 6f 6d 6d 61 6e 64 2d 53 |ns for C|ommand-S|
|00000290| 68 69 66 74 2d 6e 75 6d | 62 65 72 20 63 6f 6d 62 |hift-num|ber comb|
|000002a0| 69 6e 61 74 69 6f 6e 73 | 20 66 6f 72 20 2d 6e 75 |inations| for -nu|
|000002b0| 6d 62 65 72 73 20 35 20 | 74 6f 20 39 20 62 79 20 |mbers 5 |to 9 by |
|000002c0| 64 65 66 69 6e 69 6e 67 | 20 79 6f 75 72 20 6f 77 |defining| your ow|
|000002d0| 6e 20 d4 46 4b 45 59 d5 | 20 72 65 73 6f 75 72 63 |n .FKEY.| resourc|
|000002e0| 65 2e 20 54 68 65 20 72 | 6f 75 74 69 6e 65 20 6d |e. The r|outine m|
|000002f0| 75 73 74 20 68 61 76 65 | 20 6e 6f 20 70 61 72 61 |ust have| no para|
|00000300| 6d 65 74 65 72 73 2e 20 | 54 68 65 20 49 44 20 6f |meters. |The ID o|
|00000310| 66 20 74 68 65 20 72 65 | 73 6f 75 72 63 65 20 6d |f the re|source m|
|00000320| 75 73 74 20 63 6f 72 72 | 65 73 70 6f 6e 64 20 74 |ust corr|espond t|
|00000330| 6f 20 74 68 65 20 6e 75 | 6d 62 65 72 20 79 6f 75 |o the nu|mber you|
|00000340| 20 77 61 6e 74 20 74 68 | 65 20 72 6f 75 74 69 6e | want th|e routin|
|00000350| 65 20 74 6f 20 72 65 73 | 70 6f 6e 64 20 74 6f 2e |e to res|pond to.|
|00000360| 20 46 6f 72 20 65 78 61 | 6d 70 6c 65 2c 20 69 66 | For exa|mple, if|
|00000370| 20 79 6f 75 20 77 61 6e | 74 20 74 6f 20 64 65 66 | you wan|t to def|
|00000380| 69 6e 65 20 61 6e 20 61 | 63 74 69 6f 6e 20 66 6f |ine an a|ction fo|
|00000390| 72 20 43 6f 6d 6d 61 6e | 64 2d 53 68 69 66 74 2d |r Comman|d-Shift-|
|000003a0| 38 2c 20 79 6f 75 20 77 | 6f 75 6c 64 20 63 72 65 |8, you w|ould cre|
|000003b0| 61 74 65 20 61 6e 20 d4 | 46 4b 45 59 d5 20 72 65 |ate an .|FKEY. re|
|000003c0| 73 6f 75 72 63 65 20 77 | 69 74 68 20 61 6e 20 49 |source w|ith an I|
|000003d0| 44 20 6f 66 20 38 2e 20 | 54 68 65 20 d4 46 4b 45 |D of 8. |The .FKE|
|000003e0| 59 d5 20 72 65 73 6f 75 | 72 63 65 20 73 68 6f 75 |Y. resou|rce shou|
|000003f0| 6c 64 20 63 6f 6e 74 61 | 69 6e 20 74 68 65 20 63 |ld conta|in the c|
|00000400| 6f 64 65 20 74 68 61 74 | 20 79 6f 75 20 77 61 6e |ode that| you wan|
|00000410| 74 20 74 6f 20 65 78 65 | 63 75 74 65 20 77 68 65 |t to exe|cute whe|
|00000420| 6e 20 74 68 65 20 6b 65 | 79 20 69 73 20 70 72 65 |n the ke|y is pre|
|00000430| 73 73 65 64 2e 0d 54 68 | 65 20 66 6f 6c 6c 6f 77 |ssed..Th|e follow|
|00000440| 69 6e 67 20 43 6f 6d 6d | 61 6e 64 2d 53 68 69 66 |ing Comm|and-Shif|
|00000450| 74 2d 6e 75 6d 62 65 72 | 20 6b 65 79 20 63 6f 6d |t-number| key com|
|00000460| 62 69 6e 61 74 69 6f 6e | 73 20 61 72 65 20 69 6d |bination|s are im|
|00000470| 70 6c 65 6d 65 6e 74 65 | 64 20 77 69 74 68 20 d4 |plemente|d with .|
|00000480| 46 4b 45 59 d5 20 72 65 | 73 6f 75 72 63 65 73 20 |FKEY. re|sources |
|00000490| 69 6e 20 74 68 65 20 73 | 74 61 6e 64 61 72 64 20 |in the s|tandard |
|000004a0| 53 79 73 74 65 6d 20 66 | 69 6c 65 2e 0d 43 6f 6d |System f|ile..Com|
|000004b0| 6d 61 6e 64 2d 53 68 69 | 66 74 2d 33 09 53 61 76 |mand-Shi|ft-3.Sav|
|000004c0| 65 20 63 75 72 72 65 6e | 74 20 73 63 72 65 65 6e |e curren|t screen|
|000004d0| 20 61 73 20 4d 61 63 50 | 61 69 6e 74 20 66 69 6c | as MacP|aint fil|
|000004e0| 65 20 6e 61 6d 65 64 0d | 09 09 09 53 63 72 65 65 |e named.|...Scree|
|000004f0| 6e 20 30 2c 20 53 63 72 | 65 65 6e 20 31 2c 20 c9 |n 0, Scr|een 1, .|
|00000500| 20 53 63 72 65 65 6e 20 | 39 0d 09 09 09 28 57 6f | Screen |9....(Wo|
|00000510| 72 6b 73 20 69 6e 20 6f | 6e 65 2d 62 69 74 20 6d |rks in o|ne-bit m|
|00000520| 6f 64 65 20 6f 6e 6c 79 | 20 6f 6e 20 4d 61 63 20 |ode only| on Mac |
|00000530| 49 49 29 0d 43 6f 6d 6d | 61 6e 64 2d 53 68 69 66 |II).Comm|and-Shif|
|00000540| 74 2d 34 09 50 72 69 6e | 74 20 74 68 65 20 61 63 |t-4.Prin|t the ac|
|00000550| 74 69 76 65 20 77 69 6e | 64 6f 77 20 28 74 6f 20 |tive win|dow (to |
|00000560| 61 6e 20 49 6d 61 67 65 | 57 72 69 74 65 72 29 0d |an Image|Writer).|
|00000570| 28 77 69 74 68 20 43 61 | 70 73 20 4c 6f 63 6b 20 |(with Ca|ps Lock |
|00000580| 6f 6e 29 09 50 72 69 6e | 74 20 74 68 65 20 65 6e |on).Prin|t the en|
|00000590| 74 69 72 65 20 73 63 72 | 65 65 6e 20 28 74 6f 20 |tire scr|een (to |
|000005a0| 61 6e 20 49 6d 61 67 65 | 57 72 69 74 65 72 29 0d |an Image|Writer).|
|000005b0| 46 75 72 74 68 65 72 20 | 52 65 66 65 72 65 6e 63 |Further |Referenc|
|000005c0| 65 3a 0d a5 20 54 68 65 | 20 54 6f 6f 6c 62 6f 78 |e:.. The| Toolbox|
|000005d0| 20 45 76 65 6e 74 20 4d | 61 6e 61 67 65 72 0d 47 | Event M|anager.G|
|000005e0| 69 76 69 6e 67 20 74 68 | 65 20 28 44 65 73 6b 29 |iving th|e (Desk)|
|000005f0| 48 6f 6f 6b 20 74 6f 20 | 49 4e 49 54 73 0d 4f 70 |Hook to |INITs.Op|
|00000600| 65 72 61 74 69 6e 67 20 | 53 79 73 74 65 6d 09 4d |erating |System.M|
|00000610| 2e 4f 53 2e 44 65 73 6b | 48 6f 6f 6b 49 4e 49 54 |.OS.Desk|HookINIT|
|00000620| 0d 52 65 76 69 73 65 64 | 20 62 79 3a 09 50 65 74 |.Revised| by:.Pet|
|00000630| 65 20 48 65 6c 6d 65 09 | 4f 63 74 6f 62 65 72 20 |e Helme.|October |
|00000640| 31 39 38 39 0d 57 72 69 | 74 74 65 6e 20 62 79 3a |1989.Wri|tten by:|
|00000650| 09 50 65 74 65 20 48 65 | 6c 6d 65 09 41 75 67 75 |.Pete He|lme.Augu|
|00000660| 73 74 20 31 39 38 39 0d | 54 68 69 73 20 54 65 63 |st 1989.|This Tec|
|00000670| 68 6e 69 63 61 6c 20 4e | 6f 74 65 20 64 69 73 63 |hnical N|ote disc|
|00000680| 75 73 73 65 73 20 49 4e | 49 54 20 65 76 69 6c 73 |usses IN|IT evils|
|00000690| 2c 20 74 68 65 20 66 6f | 72 65 6d 6f 73 74 20 6f |, the fo|remost o|
|000006a0| 66 20 77 68 69 63 68 20 | 64 65 61 6c 73 20 77 69 |f which |deals wi|
|000006b0| 74 68 20 63 6c 65 61 72 | 69 6e 67 20 44 65 73 6b |th clear|ing Desk|
|000006c0| 48 6f 6f 6b 20 61 6e 64 | 20 44 72 61 67 48 6f 6f |Hook and| DragHoo|
|000006d0| 6b 20 61 74 20 49 4e 49 | 54 20 74 69 6d 65 2e 0d |k at INI|T time..|
|000006e0| 43 68 61 6e 67 65 73 20 | 73 69 6e 63 65 20 41 75 |Changes |since Au|
|000006f0| 67 75 73 74 20 31 39 38 | 39 3a 20 20 41 64 64 65 |gust 198|9: Adde|
|00000700| 64 20 77 61 72 6e 69 6e | 67 20 61 62 6f 75 74 20 |d warnin|g about |
|00000710| 63 6c 65 61 72 69 6e 67 | 20 44 72 61 67 48 6f 6f |clearing| DragHoo|
|00000720| 6b 2e 0d 49 66 20 79 6f | 75 d5 76 65 20 73 75 72 |k..If yo|u.ve sur|
|00000730| 76 69 76 65 64 20 74 68 | 65 20 74 79 70 69 63 61 |vived th|e typica|
|00000740| 6c 20 44 54 53 20 54 69 | 72 61 64 65 2a 20 61 6e |l DTS Ti|rade* an|
|00000750| 64 20 73 74 69 6c 6c 20 | 66 65 65 6c 20 74 68 65 |d still |feel the|
|00000760| 20 6e 65 65 64 20 74 6f | 20 64 69 73 70 6c 61 79 | need to| display|
|00000770| 20 61 20 64 69 61 6c 6f | 67 20 62 6f 78 20 6f 72 | a dialo|g box or|
|00000780| 20 77 69 6e 64 6f 77 20 | 69 6e 20 61 6e 20 49 4e | window |in an IN|
|00000790| 49 54 2c 20 79 6f 75 20 | 6e 65 65 64 20 74 6f 20 |IT, you |need to |
|000007a0| 62 65 20 61 77 61 72 65 | 20 6f 66 20 61 20 70 72 |be aware| of a pr|
|000007b0| 6f 62 6c 65 6d 20 77 68 | 69 63 68 20 65 78 69 73 |oblem wh|ich exis|
|000007c0| 74 73 20 6f 6e 20 4d 61 | 63 69 6e 74 6f 73 68 65 |ts on Ma|cintoshe|
|000007d0| 73 20 65 61 72 6c 69 65 | 72 20 74 68 61 6e 20 74 |s earlie|r than t|
|000007e0| 68 65 20 4d 61 63 69 6e | 74 6f 73 68 20 49 49 20 |he Macin|tosh II |
|000007f0| 28 72 65 6d 65 6d 62 65 | 72 20 74 68 6f 73 65 3f |(remembe|r those?|
|00000800| 29 2e 20 20 54 68 65 72 | 65 20 69 73 20 61 20 6c |). Ther|e is a l|
|00000810| 6f 77 2d 6d 65 6d 6f 72 | 79 20 67 6c 6f 62 61 6c |ow-memor|y global|
|00000820| 20 6e 61 6d 65 64 20 44 | 65 73 6b 48 6f 6f 6b 20 | named D|eskHook |
|00000830| 28 24 41 36 43 29 2c 20 | 77 68 69 63 68 20 63 61 |($A6C), |which ca|
|00000840| 6e 20 63 6f 6e 74 61 69 | 6e 20 61 20 70 6f 69 6e |n contai|n a poin|
|00000850| 74 65 72 20 74 6f 20 61 | 20 72 6f 75 74 69 6e 65 |ter to a| routine|
|00000860| 20 72 65 73 70 6f 6e 73 | 69 62 6c 65 20 66 6f 72 | respons|ible for|
|00000870| 20 70 61 69 6e 74 69 6e | 67 20 74 68 65 20 4d 61 | paintin|g the Ma|
|00000880| 63 69 6e 74 6f 73 68 20 | 64 65 73 6b 74 6f 70 2e |cintosh |desktop.|
|00000890| 20 20 49 66 20 69 74 20 | 69 73 20 4e 49 4c 2c 20 | If it |is NIL, |
|000008a0| 77 68 69 63 68 20 69 73 | 20 75 73 75 61 6c 6c 79 |which is| usually|
|000008b0| 20 74 68 65 20 63 61 73 | 65 2c 20 74 68 65 20 53 | the cas|e, the S|
|000008c0| 79 73 74 65 6d 20 70 61 | 69 6e 74 73 20 74 68 65 |ystem pa|ints the|
|000008d0| 20 64 65 73 6b 74 6f 70 | 20 77 69 74 68 20 74 68 | desktop| with th|
|000008e0| 65 20 73 74 61 6e 64 61 | 72 64 20 70 61 74 74 65 |e standa|rd patte|
|000008f0| 72 6e 2e 0d 57 68 65 6e | 20 79 6f 75 20 73 74 61 |rn..When| you sta|
|00000900| 72 74 20 64 69 73 70 6c | 61 79 69 6e 67 20 64 69 |rt displ|aying di|
|00000910| 61 6c 6f 67 20 62 6f 78 | 65 73 20 6f 72 20 77 69 |alog box|es or wi|
|00000920| 6e 64 6f 77 73 20 74 68 | 61 74 20 6f 62 73 63 75 |ndows th|at obscu|
|00000930| 72 65 20 74 68 65 20 64 | 65 73 6b 74 6f 70 20 69 |re the d|esktop i|
|00000940| 6e 20 79 6f 75 72 20 49 | 4e 49 54 20 28 74 68 69 |n your I|NIT (thi|
|00000950| 73 20 69 73 20 72 65 61 | 6c 6c 79 20 68 61 72 64 |s is rea|lly hard|
|00000960| 20 6e 6f 74 20 74 6f 20 | 64 6f 2c 20 73 6f 20 6b | not to |do, so k|
|00000970| 65 65 70 20 72 65 61 64 | 69 6e 67 20 61 6e 64 20 |eep read|ing and |
|00000980| 64 6f 6e d5 74 20 6c 65 | 74 20 75 73 20 63 61 74 |don.t le|t us cat|
|00000990| 63 68 20 79 6f 75 20 73 | 6b 69 70 70 69 6e 67 20 |ch you s|kipping |
|000009a0| 61 68 65 61 64 20 74 6f | 20 61 6e 6f 74 68 65 72 |ahead to| another|
|000009b0| 20 54 65 63 68 6e 69 63 | 61 6c 20 4e 6f 74 65 20 | Technic|al Note |
|000009c0| 77 69 74 68 20 70 69 63 | 74 75 72 65 73 20 6f 66 |with pic|tures of|
|000009d0| 20 68 75 6d 61 6e 20 67 | 65 6e 65 74 69 63 20 65 | human g|enetic e|
|000009e0| 78 70 65 72 69 6d 65 6e | 74 73 20 67 6f 6e 65 20 |xperimen|ts gone |
|000009f0| 73 6f 75 72 d1 79 6f 75 | 20 6b 6e 6f 77 20 77 68 |sour.you| know wh|
|00000a00| 69 63 68 20 6f 6e 65 20 | 49 d5 6d 20 74 61 6c 6b |ich one |I.m talk|
|00000a10| 69 6e 67 20 61 62 6f 75 | 74 29 2c 20 74 68 65 20 |ing abou|t), the |
|00000a20| 53 79 73 74 65 6d 20 6c | 6f 6f 6b 73 20 61 74 20 |System l|ooks at |
|00000a30| 44 65 73 6b 48 6f 6f 6b | 20 66 6f 72 20 61 20 64 |DeskHook| for a d|
|00000a40| 65 73 6b 74 6f 70 20 75 | 70 64 61 74 69 6e 67 20 |esktop u|pdating |
|00000a50| 72 6f 75 74 69 6e 65 2e | 20 20 53 69 6e 63 65 20 |routine.| Since |
|00000a60| 74 68 65 20 4d 61 63 69 | 6e 74 6f 73 68 20 49 49 |the Maci|ntosh II|
|00000a70| 2c 20 74 68 65 20 53 79 | 73 74 65 6d 20 68 61 73 |, the Sy|stem has|
|00000a80| 20 63 6c 65 61 72 65 64 | 20 74 68 69 73 20 68 6f | cleared| this ho|
|00000a90| 6f 6b 20 70 72 69 6f 72 | 20 74 6f 20 63 61 6c 6c |ok prior| to call|
|00000aa0| 69 6e 67 20 79 6f 75 72 | 20 49 4e 49 54 3b 20 68 |ing your| INIT; h|
|00000ab0| 6f 77 65 76 65 72 2c 20 | 6f 6e 20 6d 61 63 68 69 |owever, |on machi|
|00000ac0| 6e 65 73 20 62 65 66 6f | 72 65 20 74 68 65 20 4d |nes befo|re the M|
|00000ad0| 61 63 69 6e 74 6f 73 68 | 20 49 49 2c 20 74 68 69 |acintosh| II, thi|
|00000ae0| 73 20 68 6f 6f 6b 20 69 | 73 20 6e 6f 74 20 63 6c |s hook i|s not cl|
|00000af0| 65 61 72 65 64 20 62 65 | 66 6f 72 65 20 74 68 65 |eared be|fore the|
|00000b00| 20 53 79 73 74 65 6d 20 | 63 61 6c 6c 73 20 79 6f | System |calls yo|
|00000b10| 75 72 20 49 4e 49 54 2c | 20 73 6f 20 74 68 65 72 |ur INIT,| so ther|
|00000b20| 65 20 69 73 20 75 73 75 | 61 6c 6c 79 20 73 6f 6d |e is usu|ally som|
|00000b30| 65 20 6a 75 6e 6b 20 68 | 65 78 20 6c 6f 75 6e 67 |e junk h|ex loung|
|00000b40| 69 6e 67 20 61 62 6f 75 | 74 20 69 6e 20 74 68 65 |ing abou|t in the|
|00000b50| 72 65 2e 20 20 53 69 6e | 63 65 20 44 65 73 6b 48 |re. Sin|ce DeskH|
|00000b60| 6f 6f 6b 20 69 73 20 6e | 6f 74 20 4e 49 4c 2c 20 |ook is n|ot NIL, |
|00000b70| 77 68 65 6e 20 74 68 65 | 20 53 79 73 74 65 6d 20 |when the| System |
|00000b80| 74 72 69 65 73 20 74 6f | 20 75 73 65 20 61 6e 64 |tries to| use and|
|00000b90| 20 70 65 72 66 6f 72 6d | 20 61 20 4a 53 52 20 74 | perform| a JSR t|
|00000ba0| 6f 20 74 68 69 73 20 d2 | 61 64 64 72 65 73 73 2c |o this .|address,|
|00000bb0| d3 20 69 74 20 62 6c 6f | 77 73 20 62 69 67 20 63 |. it blo|ws big c|
|00000bc0| 68 75 6e 6b 73 2e 0d 53 | 6f 20 75 6e 6c 65 73 73 |hunks..S|o unless|
|00000bd0| 20 79 6f 75 20 6c 69 6b | 65 20 62 69 67 20 63 68 | you lik|e big ch|
|00000be0| 75 6e 6b 73 2c 20 74 68 | 65 20 65 61 73 79 20 77 |unks, th|e easy w|
|00000bf0| 61 79 20 74 6f 20 66 69 | 78 20 74 68 69 73 20 70 |ay to fi|x this p|
|00000c00| 72 6f 62 6c 65 6d 20 69 | 73 20 74 6f 20 63 6c 65 |roblem i|s to cle|
|00000c10| 61 72 20 44 65 73 6b 48 | 6f 6f 6b 20 62 65 66 6f |ar DeskH|ook befo|
|00000c20| 72 65 20 64 6f 69 6e 67 | 20 61 6e 79 20 77 69 6e |re doing| any win|
|00000c30| 64 6f 77 20 64 72 61 77 | 69 6e 67 2e 20 20 54 68 |dow draw|ing. Th|
|00000c40| 65 20 6d 6f 73 74 20 6c | 6f 67 69 63 61 6c 20 74 |e most l|ogical t|
|00000c50| 69 6d 65 20 74 6f 20 64 | 6f 20 74 68 69 73 20 69 |ime to d|o this i|
|00000c60| 73 20 64 75 72 69 6e 67 | 20 79 6f 75 72 20 69 6e |s during| your in|
|00000c70| 69 74 69 61 6c 69 7a 61 | 74 69 6f 6e 3a 0d 09 50 |itializa|tion:..P|
|00000c80| 45 41 20 09 74 68 65 50 | 6f 72 74 28 41 36 29 09 |EA .theP|ort(A6).|
|00000c90| 09 3b 20 69 6e 69 74 69 | 61 6c 69 7a 65 20 6f 77 |.; initi|alize ow|
|00000ca0| 6e 20 67 72 61 66 50 6f | 72 74 20 6f 66 66 20 41 |n grafPo|rt off A|
|00000cb0| 36 0d 09 5f 49 6e 69 74 | 47 72 61 66 0d 09 5f 49 |6.._Init|Graf.._I|
|00000cc0| 6e 69 74 46 6f 6e 74 73 | 0d 09 5f 49 6e 69 74 57 |nitFonts|.._InitW|
|00000cd0| 69 6e 64 6f 77 73 20 0d | 09 5f 54 45 49 6e 69 74 |indows .|._TEInit|
|00000ce0| 0d 09 43 4c 52 2e 4c 20 | 09 2d 28 41 37 29 20 0d |..CLR.L |.-(A7) .|
|00000cf0| 09 5f 49 6e 69 74 44 69 | 61 6c 6f 67 73 0d 09 43 |._InitDi|alogs..C|
|00000d00| 4c 52 2e 4c 20 09 24 41 | 36 43 09 09 09 3b 20 44 |LR.L .$A|6C...; D|
|00000d10| 65 73 6b 48 6f 6f 6b 0d | 46 6f 72 20 79 6f 75 20 |eskHook.|For you |
|00000d20| 68 69 67 68 2d 6c 65 76 | 65 6c 20 74 79 70 65 73 |high-lev|el types|
|00000d30| 2c 20 74 68 69 73 20 74 | 72 61 6e 73 6c 61 74 65 |, this t|ranslate|
|00000d40| 73 20 69 6e 74 6f 3a 0d | 70 72 6f 63 65 64 75 72 |s into:.|procedur|
|00000d50| 65 20 43 6c 65 61 72 44 | 65 73 6b 48 6f 6f 6b 3b |e ClearD|eskHook;|
|00000d60| 0d 09 69 6e 6c 69 6e 65 | 0d 09 20 24 34 32 42 38 |..inline|.. $42B8|
|00000d70| 2c 20 24 30 41 36 43 3b | 09 09 7b 20 43 4c 52 2e |, $0A6C;|..{ CLR.|
|00000d80| 4c 20 24 41 36 43 20 3b | 20 44 65 73 6b 48 6f 6f |L $A6C ;| DeskHoo|
|00000d90| 6b 20 7d 0d 49 74 20 64 | 6f 65 73 6e d5 74 20 68 |k }.It d|oesn.t h|
|00000da0| 75 72 74 20 74 6f 20 63 | 6c 65 61 72 20 69 74 20 |urt to c|lear it |
|00000db0| 6f 6e 20 6e 65 77 65 72 | 20 6d 61 63 68 69 6e 65 |on newer| machine|
|00000dc0| 73 20 65 69 74 68 65 72 | 2c 20 65 76 65 6e 20 69 |s either|, even i|
|00000dd0| 66 20 69 74 20 69 73 20 | 61 6c 72 65 61 64 79 20 |f it is |already |
|00000de0| 63 6c 65 61 72 20 28 79 | 6f 75 d5 6c 6c 20 6a 75 |clear (y|ou.ll ju|
|00000df0| 73 74 20 68 61 76 65 20 | 74 6f 20 74 72 75 73 74 |st have |to trust|
|00000e00| 20 6d 65 20 6f 6e 20 74 | 68 69 73 20 6f 6e 65 29 | me on t|his one)|
|00000e10| 2c 20 73 6f 20 67 6f 20 | 61 68 65 61 64 20 61 6e |, so go |ahead an|
|00000e20| 64 20 63 6c 65 61 72 20 | 69 74 20 61 6c 6c 20 74 |d clear |it all t|
|00000e30| 68 65 20 74 69 6d 65 2e | 0d 4e 6f 74 65 3a 09 53 |he time.|.Note:.S|
|00000e40| 6f 6d 65 20 49 4e 49 54 | 73 20 6d 69 67 68 74 20 |ome INIT|s might |
|00000e50| 61 63 74 75 61 6c 6c 79 | 20 75 73 65 20 44 65 73 |actually| use Des|
|00000e60| 6b 48 6f 6f 6b 2e 20 20 | 48 6f 77 65 76 65 72 2c |kHook. |However,|
|00000e70| 20 74 68 65 20 70 6f 70 | 75 6c 61 72 20 6f 6e 65 | the pop|ular one|
|00000e80| 73 20 74 68 61 74 20 70 | 61 69 6e 74 20 61 20 70 |s that p|aint a p|
|00000e90| 69 63 74 75 72 65 20 6f | 6e 20 74 68 65 20 64 65 |icture o|n the de|
|00000ea0| 73 6b 74 6f 70 2c 20 77 | 68 69 63 68 20 79 6f 75 |sktop, w|hich you|
|00000eb0| 20 6d 69 67 68 74 20 74 | 68 69 6e 6b 20 75 73 65 | might t|hink use|
|00000ec0| 20 69 74 2c 20 64 6f 20 | 6e 6f 74 2e 20 20 54 68 | it, do |not. Th|
|00000ed0| 65 79 20 75 73 65 20 6f | 74 68 65 72 20 6d 65 74 |ey use o|ther met|
|00000ee0| 68 6f 64 73 2e 20 20 28 | 57 65 20 6b 6e 6f 77 2c |hods. (|We know,|
|00000ef0| 20 77 65 20 63 68 65 63 | 6b 65 64 2e 20 20 57 65 | we chec|ked. We|
|00000f00| 20 68 61 76 65 20 74 68 | 65 20 74 65 63 68 6e 6f | have th|e techno|
|00000f10| 6c 6f 67 79 2e 29 20 20 | 46 6f 72 20 74 68 6f 73 |logy.) |For thos|
|00000f20| 65 20 6f 66 20 79 6f 75 | 20 77 68 6f 20 68 61 76 |e of you| who hav|
|00000f30| 65 20 73 65 65 6e 20 61 | 20 72 65 61 6c 20 70 72 |e seen a| real pr|
|00000f40| 6f 63 65 64 75 72 65 20 | 70 6f 69 6e 74 65 72 20 |ocedure |pointer |
|00000f50| 69 6e 20 6c 6f 63 61 74 | 69 6f 6e 20 24 41 36 43 |in locat|ion $A6C|
|00000f60| 20 6f 6e 20 65 61 72 6c | 69 65 72 20 4d 61 63 69 | on earl|ier Maci|
|00000f70| 6e 74 6f 73 68 65 73 2c | 20 64 6f 6e d5 74 20 77 |ntoshes,| don.t w|
|00000f80| 6f 72 72 79 2e 20 20 54 | 68 65 20 73 79 73 74 65 |orry. T|he syste|
|00000f90| 6d 20 64 6f 65 73 20 6e | 6f 74 20 61 63 74 75 61 |m does n|ot actua|
|00000fa0| 6c 6c 79 20 73 65 74 20 | 44 65 73 6b 48 6f 6f 6b |lly set |DeskHook|
|00000fb0| 20 66 6f 72 20 69 74 73 | 20 6f 77 6e 20 75 73 65 | for its| own use|
|00000fc0| 20 75 6e 74 69 6c 20 74 | 68 65 20 66 69 72 73 74 | until t|he first|
|00000fd0| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 6c 6f 61 | applica|tion loa|
|00000fe0| 64 73 2c 20 73 6f 20 63 | 6c 65 61 72 69 6e 67 20 |ds, so c|learing |
|00000ff0| 69 74 20 77 68 69 6c 65 | 20 49 4e 49 54 73 20 6c |it while| INITs l|
|00001000| 6f 61 64 20 69 73 20 6f | 6b 61 79 2e 0d 09 49 66 |oad is o|kay...If|
|00001010| 20 74 68 65 72 65 20 69 | 73 20 73 6f 6d 65 20 64 | there i|s some d|
|00001020| 61 72 69 6e 67 20 49 4e | 49 54 20 6f 75 74 20 74 |aring IN|IT out t|
|00001030| 68 65 72 65 20 77 68 69 | 63 68 20 73 65 74 73 20 |here whi|ch sets |
|00001040| 44 65 73 6b 48 6f 6f 6b | 2c 20 77 65 20 68 61 76 |DeskHook|, we hav|
|00001050| 65 6e d5 74 20 68 65 61 | 72 64 20 61 62 6f 75 74 |en.t hea|rd about|
|00001060| 20 69 74 2e 20 20 41 73 | 20 69 73 20 74 68 65 20 | it. As| is the |
|00001070| 63 61 73 65 20 77 69 74 | 68 20 6d 61 6e 79 20 6c |case wit|h many l|
|00001080| 6f 77 2d 6d 65 6d 6f 72 | 79 20 67 6c 6f 62 61 6c |ow-memor|y global|
|00001090| 73 2c 20 75 73 69 6e 67 | 20 44 65 73 6b 48 6f 6f |s, using| DeskHoo|
|000010a0| 6b 20 68 61 73 20 6e 65 | 76 65 72 20 62 65 65 6e |k has ne|ver been|
|000010b0| 20 73 75 70 70 6f 72 74 | 65 64 2e 0d 57 61 74 63 | support|ed..Watc|
|000010c0| 68 20 4f 75 74 20 46 6f | 72 20 54 68 69 73 20 47 |h Out Fo|r This G|
|000010d0| 75 79 20 54 6f 6f 0d 49 | 74 20 73 68 6f 75 6c 64 |uy Too.I|t should|
|000010e0| 20 61 6c 73 6f 20 62 65 | 20 6e 6f 74 65 64 20 74 | also be| noted t|
|000010f0| 68 61 74 20 44 72 61 67 | 48 6f 6f 6b 20 28 24 39 |hat Drag|Hook ($9|
|00001100| 46 36 29 20 69 73 20 6e | 6f 74 20 63 6c 65 61 72 |F6) is n|ot clear|
|00001110| 65 64 20 64 75 72 69 6e | 67 20 49 4e 49 54 20 74 |ed durin|g INIT t|
|00001120| 69 6d 65 20 6f 6e 20 65 | 61 72 6c 79 20 4d 61 63 |ime on e|arly Mac|
|00001130| 69 6e 74 6f 73 68 65 73 | 20 65 69 74 68 65 72 2c |intoshes| either,|
|00001140| 20 61 6e 64 20 69 74 20 | 77 69 6c 6c 20 70 72 6f | and it |will pro|
|00001150| 62 61 62 6c 79 20 63 6f | 6e 74 61 69 6e 20 24 46 |bably co|ntain $F|
|00001160| 46 46 46 46 46 46 46 2e | 20 20 49 20 67 75 65 73 |FFFFFFF.| I gues|
|00001170| 73 20 6e 6f 20 6f 6e 65 | 20 69 6e 20 65 61 72 6c |s no one| in earl|
|00001180| 79 20 4d 61 63 69 6e 74 | 6f 73 68 20 53 79 73 74 |y Macint|osh Syst|
|00001190| 65 6d 20 53 6f 66 74 77 | 61 72 65 20 77 61 6e 74 |em Softw|are want|
|000011a0| 65 64 20 44 65 73 6b 48 | 6f 6f 6b 20 74 6f 20 62 |ed DeskH|ook to b|
|000011b0| 65 20 6c 6f 6e 65 6c 79 | 2e 20 20 44 72 61 67 48 |e lonely|. DragH|
|000011c0| 6f 6f 6b 20 63 61 6e 20 | 63 6f 6e 74 61 69 6e 20 |ook can |contain |
|000011d0| 61 20 70 6f 69 6e 74 65 | 72 20 74 6f 20 61 20 70 |a pointe|r to a p|
|000011e0| 72 6f 63 65 64 75 72 65 | 20 74 68 61 74 20 69 73 |rocedure| that is|
|000011f0| 20 63 61 6c 6c 65 64 20 | 63 6f 6e 74 69 6e 75 6f | called |continuo|
|00001200| 75 73 6c 79 20 77 68 69 | 6c 65 20 74 68 65 20 6d |usly whi|le the m|
|00001210| 6f 75 73 65 20 62 75 74 | 74 6f 6e 20 69 73 20 64 |ouse but|ton is d|
|00001220| 6f 77 6e 2e 20 20 49 66 | 20 79 6f 75 20 68 61 76 |own. If| you hav|
|00001230| 65 20 61 20 75 73 65 72 | 20 69 6e 74 65 72 66 61 |e a user| interfa|
|00001240| 63 65 20 61 74 20 49 4e | 49 54 20 74 69 6d 65 20 |ce at IN|IT time |
|00001250| 74 68 61 74 20 75 6c 74 | 69 6d 61 74 65 6c 79 20 |that ult|imately |
|00001260| 63 61 6c 6c 73 20 5f 54 | 72 61 63 6b 47 6f 41 77 |calls _T|rackGoAw|
|00001270| 61 79 20 66 6f 72 20 77 | 69 6e 64 6f 77 73 20 6f |ay for w|indows o|
|00001280| 72 20 5f 54 72 61 63 6b | 43 6f 6e 74 72 6f 6c 20 |r _Track|Control |
|00001290| 66 6f 72 20 63 6f 6e 74 | 72 6f 6c 73 2c 20 6c 6f |for cont|rols, lo|
|000012a0| 6f 6b 20 6f 75 74 2e 20 | 20 49 66 20 74 68 65 20 |ok out. | If the |
|000012b0| 63 6f 6e 74 72 6f 6c 20 | 69 73 20 6f 66 20 74 68 |control |is of th|
|000012c0| 65 20 74 79 70 65 20 74 | 6f 20 61 6c 6c 6f 77 20 |e type t|o allow |
|000012d0| 6f 6e 65 20 6f 66 20 69 | 74 d5 73 20 70 61 72 74 |one of i|t.s part|
|000012e0| 73 20 74 6f 20 62 65 20 | 64 72 61 67 67 65 64 20 |s to be |dragged |
|000012f0| 77 69 74 68 20 61 6e 20 | 6f 75 74 6c 69 6e 65 2c |with an |outline,|
|00001300| 20 6c 69 6b 65 20 61 20 | 73 63 72 6f 6c 6c 20 62 | like a |scroll b|
|00001310| 61 72 d5 73 20 74 68 75 | 6d 62 2c 20 69 74 20 63 |ar.s thu|mb, it c|
|00001320| 61 6c 6c 73 20 5f 44 72 | 61 67 54 68 65 52 67 6e |alls _Dr|agTheRgn|
|00001330| 2c 20 77 68 69 63 68 20 | 63 68 65 63 6b 73 20 74 |, which |checks t|
|00001340| 6f 20 73 65 65 20 69 66 | 20 44 72 61 67 48 6f 6f |o see if| DragHoo|
|00001350| 6b 20 69 73 20 4e 49 4c | 2c 20 61 6e 64 20 69 66 |k is NIL|, and if|
|00001360| 20 69 74 20 69 73 20 6e | 6f 74 2c 20 69 74 20 74 | it is n|ot, it t|
|00001370| 72 69 65 73 20 74 6f 20 | 70 65 72 66 6f 72 6d 20 |ries to |perform |
|00001380| 61 20 4a 53 52 20 74 6f | 20 77 68 61 74 65 76 65 |a JSR to| whateve|
|00001390| 72 20 61 64 64 72 65 73 | 73 20 69 73 20 74 68 65 |r addres|s is the|
|000013a0| 72 65 2e 20 20 5f 54 72 | 61 63 6b 47 6f 41 77 61 |re. _Tr|ackGoAwa|
|000013b0| 79 20 61 6c 73 6f 20 74 | 72 69 65 73 20 74 6f 20 |y also t|ries to |
|000013c0| 70 65 72 66 6f 72 6d 20 | 61 20 4a 53 52 20 74 6f |perform |a JSR to|
|000013d0| 20 74 68 61 74 20 61 64 | 64 72 65 73 73 20 69 66 | that ad|dress if|
|000013e0| 20 69 74 d5 73 20 6e 6f | 74 20 4e 49 4c 2e 20 20 | it.s no|t NIL. |
|000013f0| 53 6f 20 6d 61 6b 65 20 | 73 75 72 65 20 44 72 61 |So make |sure Dra|
|00001400| 67 48 6f 6f 6b 20 69 73 | 20 63 6c 65 61 72 20 62 |gHook is| clear b|
|00001410| 65 66 6f 72 65 20 79 6f | 75 20 61 74 74 65 6d 70 |efore yo|u attemp|
|00001420| 74 20 74 6f 20 75 73 65 | 20 6f 6e 65 20 6f 66 20 |t to use| one of |
|00001430| 74 68 65 73 65 20 72 6f | 75 74 69 6e 65 73 2e 0d |these ro|utines..|
|00001440| 49 6e 20 66 61 63 74 2c | 20 69 66 20 79 6f 75 d5 |In fact,| if you.|
|00001450| 76 65 20 67 6f 74 20 61 | 20 6c 6f 74 20 6f 66 20 |ve got a| lot of |
|00001460| 73 70 61 72 65 20 74 69 | 6d 65 2c 20 6c 69 6b 65 |spare ti|me, like|
|00001470| 20 79 6f 75 d5 72 65 20 | 6f 6e 20 74 68 65 20 56 | you.re |on the V|
|00001480| 6f 79 61 67 65 72 20 37 | 20 70 72 6f 6a 65 63 74 |oyager 7| project|
|00001490| 20 77 61 69 74 69 6e 67 | 20 74 6f 20 63 6f 6d 65 | waiting| to come|
|000014a0| 20 69 6e 74 6f 20 63 6f | 6e 74 61 63 74 20 77 69 | into co|ntact wi|
|000014b0| 74 68 20 42 6c 61 63 6b | 20 4c 65 63 74 72 6f 69 |th Black| Lectroi|
|000014c0| 64 73 20 61 6e 64 20 79 | 6f 75 20 68 61 76 65 20 |ds and y|ou have |
|000014d0| 61 6e 20 6f 6c 64 20 4d | 61 63 69 6e 74 6f 73 68 |an old M|acintosh|
|000014e0| 20 35 31 32 4b 45 20 6f | 72 20 50 6c 75 73 20 6c | 512KE o|r Plus l|
|000014f0| 79 69 6e 67 20 61 72 6f | 75 6e 64 2c 20 77 68 79 |ying aro|und, why|
|00001500| 20 6e 6f 74 20 74 72 79 | 20 72 61 6e 64 6f 6d 6c | not try| randoml|
|00001510| 79 20 63 6c 65 61 72 69 | 6e 67 20 6f 75 74 20 61 |y cleari|ng out a|
|00001520| 6c 6c 20 6c 6f 77 2d 6d | 65 6d 6f 72 79 20 67 6c |ll low-m|emory gl|
|00001530| 6f 62 61 6c 73 20 61 6e | 64 20 73 65 65 20 77 68 |obals an|d see wh|
|00001540| 61 74 20 64 6f 65 73 20 | 61 6e 64 20 64 6f 65 73 |at does |and does|
|00001550| 6e d5 74 20 63 72 61 73 | 68 3f 20 20 53 75 72 65 |n.t cras|h? Sure|
|00001560| 20 74 6f 20 62 65 20 61 | 6e 20 69 63 65 20 62 72 | to be a|n ice br|
|00001570| 65 61 6b 65 72 20 61 74 | 20 70 61 72 74 69 65 73 |eaker at| parties|
|00001580| 2e 0d 2a 20 28 41 73 74 | 65 72 69 73 6b 29 0d 57 |..* (Ast|erisk).W|
|00001590| 68 61 74 20 61 6d 20 49 | 20 79 61 6b 6b 69 6e 67 |hat am I| yakking|
|000015a0| 20 61 62 6f 75 74 3f 20 | 20 49 66 20 79 6f 75 d5 | about? | If you.|
|000015b0| 76 65 20 65 76 65 72 20 | 77 72 69 74 74 65 6e 20 |ve ever |written |
|000015c0| 74 6f 20 44 54 53 20 61 | 62 6f 75 74 20 67 65 74 |to DTS a|bout get|
|000015d0| 74 69 6e 67 20 68 65 6c | 70 20 77 69 74 68 20 64 |ting hel|p with d|
|000015e0| 69 73 70 6c 61 79 69 6e | 67 20 73 6f 6d 65 20 6b |isplayin|g some k|
|000015f0| 69 6e 64 20 6f 66 20 6d | 6f 64 61 6c 20 6d 6f 6e |ind of m|odal mon|
|00001600| 73 74 65 72 20 61 74 20 | 49 4e 49 54 20 74 69 6d |ster at |INIT tim|
|00001610| 65 20 28 72 65 6d 65 6d | 62 65 72 20 74 68 69 73 |e (remem|ber this|
|00001620| 20 66 6f 72 20 74 68 65 | 20 6c 61 74 65 72 20 71 | for the| later q|
|00001630| 75 69 7a 20 6b 69 64 73 | 2c 20 74 68 61 74 d5 73 |uiz kids|, that.s|
|00001640| 20 74 68 65 20 74 69 6d | 65 20 62 65 66 6f 72 65 | the tim|e before|
|00001650| 20 74 68 69 73 20 73 6f | 72 74 20 6f 66 20 74 68 | this so|rt of th|
|00001660| 69 6e 67 20 73 68 6f 75 | 6c 64 20 6e 6f 72 6d 61 |ing shou|ld norma|
|00001670| 6c 6c 79 20 68 61 70 70 | 65 6e 29 2c 20 79 6f 75 |lly happ|en), you|
|00001680| 20 6b 6e 6f 77 20 6f 66 | 20 77 68 61 74 20 49 20 | know of| what I |
|00001690| 79 61 6b 2e 0d 57 65 20 | 68 61 76 65 20 74 68 69 |yak..We |have thi|
|000016a0| 73 20 70 65 74 20 70 65 | 65 76 65 20 77 69 74 68 |s pet pe|eve with|
|000016b0| 20 49 4e 49 54 73 20 74 | 68 61 74 20 69 6e 74 65 | INITs t|hat inte|
|000016c0| 72 72 75 70 74 20 74 68 | 65 20 62 6f 6f 74 20 70 |rrupt th|e boot p|
|000016d0| 72 6f 63 65 73 73 20 77 | 69 74 68 20 61 20 6d 6f |rocess w|ith a mo|
|000016e0| 64 61 6c 20 64 69 61 6c | 6f 67 20 62 6f 78 20 77 |dal dial|og box w|
|000016f0| 68 69 63 68 20 61 73 6b | 73 20 75 73 20 74 6f 20 |hich ask|s us to |
|00001700| 65 6e 74 65 72 20 6f 75 | 72 20 6e 61 6d 65 20 74 |enter ou|r name t|
|00001710| 68 65 6e 20 70 72 6f 63 | 65 65 64 73 20 74 6f 20 |hen proc|eeds to |
|00001720| 61 73 6b 20 75 73 20 68 | 6f 77 20 6d 61 6e 79 20 |ask us h|ow many |
|00001730| 63 68 61 72 61 63 74 65 | 72 73 20 77 65 20 6a 75 |characte|rs we ju|
|00001740| 73 74 20 65 6e 74 65 72 | 65 64 20 61 6e 64 20 77 |st enter|ed and w|
|00001750| 68 61 74 20 77 65 20 68 | 61 64 20 66 6f 72 20 64 |hat we h|ad for d|
|00001760| 69 6e 6e 65 72 2c 20 65 | 73 70 65 63 69 61 6c 6c |inner, e|speciall|
|00001770| 79 20 77 68 65 6e 20 77 | 65 d5 76 65 20 6c 65 66 |y when w|e.ve lef|
|00001780| 74 20 74 68 65 20 64 65 | 73 6b 20 74 6f 20 67 6f |t the de|sk to go|
|00001790| 20 67 65 74 20 61 20 66 | 69 78 20 6f 66 20 61 20 | get a f|ix of a |
|000017a0| 68 69 67 68 6c 79 20 63 | 61 66 66 65 69 6e 61 74 |highly c|affeinat|
|000017b0| 65 64 20 73 75 62 73 74 | 61 6e 63 65 2e 20 20 49 |ed subst|ance. I|
|000017c0| 4e 49 54 73 20 77 65 72 | 65 20 63 72 65 61 74 65 |NITs wer|e create|
|000017d0| 64 20 66 6f 72 20 64 65 | 76 65 6c 6f 70 65 72 73 |d for de|velopers|
|000017e0| 20 28 61 6e 64 20 75 73 | 29 20 74 6f 20 69 6e 73 | (and us|) to ins|
|000017f0| 74 61 6c 6c 20 73 79 73 | 74 65 6d 20 70 61 74 63 |tall sys|tem patc|
|00001800| 68 65 73 20 61 6e 64 20 | 64 65 76 69 63 65 20 64 |hes and |device d|
|00001810| 72 69 76 65 72 73 20 61 | 6e 64 20 6d 61 6b 65 20 |rivers a|nd make |
|00001820| 74 68 65 20 6f 63 63 61 | 73 69 6f 6e 61 6c 20 72 |the occa|sional r|
|00001830| 75 64 65 20 73 74 61 72 | 74 75 70 20 73 6f 75 6e |ude star|tup soun|
|00001840| 64 20 74 6f 20 61 6e 6e | 6f 79 20 74 68 65 20 70 |d to ann|oy the p|
|00001850| 65 72 73 6f 6e 20 6f 63 | 63 75 70 79 69 6e 67 20 |erson oc|cupying |
|00001860| 74 68 65 20 63 75 62 65 | 20 6e 65 78 74 20 74 6f |the cube| next to|
|00001870| 20 6f 75 72 73 2e 20 20 | 49 4e 49 54 73 20 77 65 | ours. |INITs we|
|00001880| 72 65 20 6e 6f 74 20 64 | 65 76 65 6c 6f 70 65 64 |re not d|eveloped|
|00001890| 20 74 6f 20 61 73 6b 20 | 66 6f 72 20 70 65 72 73 | to ask |for pers|
|000018a0| 6f 6e 61 6c 20 28 61 73 | 65 78 75 61 6c 29 20 68 |onal (as|exual) h|
|000018b0| 69 73 74 6f 72 69 65 73 | 2e 0d 57 65 20 64 6f 20 |istories|..We do |
|000018c0| 6e 6f 74 20 6d 65 61 6e | 20 74 6f 20 73 61 79 20 |not mean| to say |
|000018d0| 74 68 61 74 20 77 65 20 | 64 6f 6e d5 74 20 6c 69 |that we |don.t li|
|000018e0| 6b 65 20 61 6c 6c 20 67 | 72 61 70 68 69 63 73 20 |ke all g|raphics |
|000018f0| 61 74 20 62 6f 6f 74 20 | 74 69 6d 65 2e 20 20 54 |at boot |time. T|
|00001900| 68 65 20 53 68 6f 77 49 | 4e 49 54 20 69 63 6f 6e |he ShowI|NIT icon|
|00001910| 20 6d 65 63 68 61 6e 69 | 73 6d 20 74 68 61 74 20 | mechani|sm that |
|00001920| 77 61 73 20 70 6f 70 75 | 6c 61 72 69 7a 65 64 20 |was popu|larized |
|00001930| 62 79 20 50 61 75 6c 20 | 4d 65 72 63 65 72 20 69 |by Paul |Mercer i|
|00001940| 73 20 67 72 65 61 74 2e | 20 20 49 6e 20 66 61 63 |s great.| In fac|
|00001950| 74 2c 20 77 65 20 65 6e | 63 6f 75 72 61 67 65 20 |t, we en|courage |
|00001960| 69 74 d5 73 20 75 73 65 | 20 61 6e 64 20 77 65 20 |it.s use| and we |
|00001970| 67 6c 61 64 6c 79 20 67 | 69 76 65 20 6f 75 74 20 |gladly g|ive out |
|00001980| 74 68 65 20 53 68 6f 77 | 49 4e 49 54 20 4d 50 57 |the Show|INIT MPW|
|00001990| 20 6f 62 6a 65 63 74 20 | 66 69 6c 65 2c 20 77 69 | object |file, wi|
|000019a0| 74 68 20 69 6e 73 74 61 | 6c 6c 61 74 69 6f 6e 20 |th insta|llation |
|000019b0| 68 65 6c 70 2c 20 74 6f | 20 61 6e 79 6f 6e 65 20 |help, to| anyone |
|000019c0| 77 68 6f 20 61 73 6b 73 | 20 66 6f 72 20 69 74 2e |who asks| for it.|
|000019d0| 20 20 54 68 69 73 20 69 | 73 20 61 6e 20 65 78 63 | This i|s an exc|
|000019e0| 65 6c 6c 65 6e 74 20 6d | 65 74 68 6f 64 20 66 6f |ellent m|ethod fo|
|000019f0| 72 20 61 20 64 65 76 65 | 6c 6f 70 65 72 20 74 6f |r a deve|loper to|
|00001a00| 20 69 6e 66 6f 72 6d 20 | 61 20 75 73 65 72 20 77 | inform |a user w|
|00001a10| 68 65 74 68 65 72 20 61 | 20 52 4f 4d 20 70 61 74 |hether a| ROM pat|
|00001a20| 63 68 20 6f 72 20 64 65 | 76 69 63 65 20 64 72 69 |ch or de|vice dri|
|00001a30| 76 65 72 20 68 61 73 20 | 62 65 65 6e 20 73 75 63 |ver has |been suc|
|00001a40| 63 65 73 73 66 75 6c 6c | 79 20 69 6e 73 74 61 6c |cessfull|y instal|
|00001a50| 6c 65 64 20 28 73 68 6f | 77 20 74 68 65 20 72 65 |led (sho|w the re|
|00001a60| 64 20 58 20 74 68 72 6f | 75 67 68 20 74 68 65 20 |d X thro|ugh the |
|00001a70| 69 63 6f 6e 20 6f 6e 20 | 74 68 65 20 72 61 72 65 |icon on |the rare|
|00001a80| 20 6f 63 63 61 73 69 6f | 6e 20 77 68 65 6e 20 74 | occasio|n when t|
|00001a90| 68 69 6e 67 73 20 67 6f | 20 77 72 6f 6e 67 29 2e |hings go| wrong).|
|00001aa0| 20 20 4f 66 20 63 6f 75 | 72 73 65 2c 20 74 68 69 | Of cou|rse, thi|
|00001ab0| 73 20 64 6f 65 73 6e d5 | 74 20 77 6f 72 6b 20 69 |s doesn.|t work i|
|00001ac0| 66 20 73 6f 6d 65 20 6e | 6f 6e 2d 73 6f 63 69 61 |f some n|on-socia|
|00001ad0| 6c 20 49 4e 49 54 20 6d | 61 6b 65 73 20 61 6e 20 |l INIT m|akes an |
|00001ae0| 5f 49 6e 69 74 57 69 6e | 64 6f 77 73 20 63 61 6c |_InitWin|dows cal|
|00001af0| 6c 2c 20 77 68 69 63 68 | 20 77 69 70 65 73 20 63 |l, which| wipes c|
|00001b00| 6c 65 61 6e 20 74 68 65 | 20 65 6e 74 69 72 65 20 |lean the| entire |
|00001b10| 73 63 72 65 65 6e 20 28 | 61 6e 64 20 77 69 74 68 |screen (|and with|
|00001b20| 20 69 74 20 61 6c 6c 20 | 70 72 65 76 69 6f 75 73 | it all |previous|
|00001b30| 20 53 68 6f 77 49 4e 49 | 54 20 69 63 6f 6e 73 29 | ShowINI|T icons)|
|00001b40| 2e 20 20 59 6f 75 20 6d | 61 79 20 61 72 67 75 65 |. You m|ay argue|
|00001b50| 20 74 68 61 74 20 68 61 | 76 69 6e 67 20 74 68 65 | that ha|ving the|
|00001b60| 20 5f 49 6e 69 74 57 69 | 6e 64 6f 77 73 20 74 72 | _InitWi|ndows tr|
|00001b70| 61 70 20 77 69 70 65 20 | 6f 75 74 20 74 68 65 20 |ap wipe |out the |
|00001b80| 65 6e 74 69 72 65 20 73 | 63 72 65 65 6e 20 61 74 |entire s|creen at|
|00001b90| 20 49 4e 49 54 20 74 69 | 6d 65 20 69 73 20 61 20 | INIT ti|me is a |
|00001ba0| 62 61 64 20 4d 61 63 69 | 6e 74 6f 73 68 20 4f 53 |bad Maci|ntosh OS|
|00001bb0| 20 49 4e 49 54 2d 74 69 | 6d 65 20 64 65 73 69 67 | INIT-ti|me desig|
|00001bc0| 6e 2c 20 62 75 74 20 74 | 68 69 73 20 69 73 20 6f |n, but t|his is o|
|00001bd0| 6e 65 20 6f 66 20 6f 75 | 72 20 62 69 67 67 65 73 |ne of ou|r bigges|
|00001be0| 74 20 63 6f 6d 70 6c 61 | 69 6e 74 73 20 77 69 74 |t compla|ints wit|
|00001bf0| 68 20 74 68 65 20 77 68 | 6f 6c 65 20 49 4e 49 54 |h the wh|ole INIT|
|00001c00| 20 6c 6f 6f 6b 2d 61 74 | 2d 6d 79 2d 66 61 6e 63 | look-at|-my-fanc|
|00001c10| 79 2d 73 70 6c 61 73 68 | 2d 73 63 72 65 65 6e 2d |y-splash|-screen-|
|00001c20| 6f 72 2d 63 6f 6d 70 6c | 65 74 65 2d 6d 79 2d 69 |or-compl|ete-my-i|
|00001c30| 6e 73 61 6e 65 6c 79 2d | 67 72 65 61 74 2d 6d 6f |nsanely-|great-mo|
|00001c40| 64 61 6c 2d 64 69 61 6c | 6f 67 2d 62 6f 78 20 70 |dal-dial|og-box p|
|00001c50| 68 65 6e 6f 6d 65 6e 6f | 6e 2e 0d 49 66 20 79 6f |henomeno|n..If yo|
|00001c60| 75 20 66 65 65 6c 20 74 | 68 65 20 6e 65 65 64 20 |u feel t|he need |
|00001c70| 74 6f 20 6e 6f 74 69 66 | 79 20 74 68 65 20 75 73 |to notif|y the us|
|00001c80| 65 72 20 6f 66 20 61 6e | 20 69 6d 70 6f 72 74 61 |er of an| importa|
|00001c90| 6e 74 20 6f 63 63 75 72 | 72 65 6e 63 65 20 64 75 |nt occur|rence du|
|00001ca0| 72 69 6e 67 20 62 6f 6f | 74 20 74 69 6d 65 2c 20 |ring boo|t time, |
|00001cb0| 69 6e 69 74 69 61 6c 69 | 7a 65 20 61 20 6e 6f 74 |initiali|ze a not|
|00001cc0| 69 66 69 63 61 74 69 6f | 6e 20 72 65 71 75 65 73 |ificatio|n reques|
|00001cd0| 74 20 77 69 74 68 20 74 | 68 65 20 4e 6f 74 69 66 |t with t|he Notif|
|00001ce0| 69 63 61 74 69 6f 6e 20 | 4d 61 6e 61 67 65 72 20 |ication |Manager |
|00001cf0| 69 6e 20 79 6f 75 72 20 | 49 4e 49 54 20 63 6f 64 |in your |INIT cod|
|00001d00| 65 20 28 73 65 65 20 4d | 2e 54 42 2e 4e 6f 74 69 |e (see M|.TB.Noti|
|00001d10| 66 69 63 61 74 69 6f 6e | 20 4d 61 6e 61 67 65 72 |fication| Manager|
|00001d20| 2c 20 61 6e 64 20 79 65 | 73 2c 20 69 74 20 69 73 |, and ye|s, it is|
|00001d30| 20 70 65 72 66 65 63 74 | 6c 79 20 6c 65 67 61 6c | perfect|ly legal|
|00001d40| 20 74 6f 20 75 73 65 20 | 61 74 20 49 4e 49 54 20 | to use |at INIT |
|00001d50| 74 69 6d 65 29 2c 20 61 | 6e 64 20 74 68 65 20 73 |time), a|nd the s|
|00001d60| 79 73 74 65 6d 20 77 69 | 6c 6c 20 6e 6f 74 69 66 |ystem wi|ll notif|
|00001d70| 79 20 74 68 65 20 75 73 | 65 72 20 61 66 74 65 72 |y the us|er after|
|00001d80| 20 74 68 65 20 62 6f 6f | 74 20 70 72 6f 63 65 73 | the boo|t proces|
|00001d90| 73 2c 20 77 68 65 6e 20 | 74 68 65 20 65 76 65 6e |s, when |the even|
|00001da0| 74 20 6d 65 63 68 61 6e | 69 73 6d 20 73 74 61 72 |t mechan|ism star|
|00001db0| 74 73 2e 20 20 54 68 65 | 20 6e 6f 77 20 61 6c 65 |ts. The| now ale|
|00001dc0| 72 74 65 64 20 75 73 65 | 72 20 63 61 6e 20 74 68 |rted use|r can th|
|00001dd0| 65 6e 20 61 63 74 69 76 | 61 74 65 20 79 6f 75 72 |en activ|ate your|
|00001de0| 20 64 65 73 6b 20 61 63 | 63 65 73 73 6f 72 79 2c | desk ac|cessory,|
|00001df0| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 2c 20 6f 72 | applica|tion, or|
|00001e00| 20 77 68 61 74 65 76 65 | 72 20 61 6e 64 20 79 6f | whateve|r and yo|
|00001e10| 75 20 63 61 6e 20 70 65 | 72 66 6f 72 6d 20 77 68 |u can pe|rform wh|
|00001e20| 61 74 65 76 65 72 20 6b | 69 6e 64 20 6f 66 20 70 |atever k|ind of p|
|00001e30| 79 72 6f 74 65 63 68 6e | 69 63 73 20 79 6f 75 20 |yrotechn|ics you |
|00001e40| 77 61 6e 74 2e 0d 49 66 | 20 79 6f 75 20 61 72 65 |want..If| you are|
|00001e50| 20 67 6f 69 6e 67 2c 20 | d2 42 75 74 2c 20 62 75 | going, |.But, bu|
|00001e60| 74 2c 20 62 75 74 c9 d3 | 20 62 65 63 61 75 73 65 |t, but..| because|
|00001e70| 20 76 61 72 69 6f 75 73 | 20 41 70 70 6c 65 20 70 | various| Apple p|
|00001e80| 72 6f 64 75 63 74 73 20 | 61 72 65 20 67 75 69 6c |roducts |are guil|
|00001e90| 74 79 20 6f 66 20 49 4e | 49 54 20 65 76 69 6c 73 |ty of IN|IT evils|
|00001ea0| 2c 20 74 68 65 6e 20 79 | 6f 75 20 73 68 6f 75 6c |, then y|ou shoul|
|00001eb0| 64 20 72 65 61 6c 69 7a | 65 20 74 68 61 74 20 77 |d realiz|e that w|
|00001ec0| 65 20 61 72 65 20 67 69 | 76 69 6e 67 20 41 70 70 |e are gi|ving App|
|00001ed0| 6c 65 20 65 6e 67 69 6e | 65 65 72 73 20 74 68 65 |le engin|eers the|
|00001ee0| 20 73 61 6d 65 2c 20 69 | 66 20 6e 6f 74 20 6d 6f | same, i|f not mo|
|00001ef0| 72 65 2c 20 67 72 69 65 | 66 20 74 6f 20 63 6c 65 |re, grie|f to cle|
|00001f00| 61 6e 73 65 20 74 68 65 | 69 72 20 61 63 74 73 20 |anse the|ir acts |
|00001f10| 61 73 20 77 65 6c 6c 2e | 0d 49 74 d5 73 20 6e 6f |as well.|.It.s no|
|00001f20| 74 20 74 68 61 74 20 77 | 65 d5 72 65 20 74 65 6c |t that w|e.re tel|
|00001f30| 6c 69 6e 67 20 79 6f 75 | 20 74 68 61 74 20 79 6f |ling you| that yo|
|00001f40| 75 20 63 61 6e 6e 6f 74 | 20 70 75 74 20 75 70 20 |u cannot| put up |
|00001f50| 61 20 6d 6f 64 61 6c 20 | 64 69 61 6c 6f 67 20 62 |a modal |dialog b|
|00001f60| 6f 78 20 61 74 20 49 4e | 49 54 20 74 69 6d 65 20 |ox at IN|IT time |
|00001f70| 69 66 20 79 6f 75 20 66 | 65 65 6c 20 6c 69 6b 65 |if you f|eel like|
|00001f80| 20 69 74 d5 73 20 72 65 | 61 6c 6c 79 2d 61 62 73 | it.s re|ally-abs|
|00001f90| 6f 6c 75 74 65 6c 79 2d | 70 6f 73 69 74 69 76 65 |olutely-|positive|
|00001fa0| 6c 79 2d 69 74 2d 77 61 | 73 2d 79 6f 75 72 2d 64 |ly-it-wa|s-your-d|
|00001fb0| 79 69 6e 67 2d 6d 6f 74 | 68 65 72 d5 73 20 6c 61 |ying-mot|her.s la|
|00001fc0| 73 74 2d 77 69 73 68 2d | 6e 65 63 65 73 73 61 72 |st-wish-|necessar|
|00001fd0| 79 2e 20 20 49 74 d5 73 | 20 6a 75 73 74 20 74 68 |y. It.s| just th|
|00001fe0| 61 74 20 44 54 53 20 77 | 6f 75 6c 64 20 6c 69 6b |at DTS w|ould lik|
|00001ff0| 65 20 74 6f 20 73 65 65 | 20 61 20 63 6c 65 61 6e |e to see| a clean|
|00002000| 65 72 20 4d 61 63 69 6e | 74 6f 73 68 20 69 6e 74 |er Macin|tosh int|
|00002010| 65 72 66 61 63 65 20 28 | 61 73 20 49 d5 6d 20 73 |erface (|as I.m s|
|00002020| 75 72 65 20 79 6f 75 20 | 61 6c 6c 20 77 6f 75 6c |ure you |all woul|
|00002030| 64 29 2c 20 61 6e 64 20 | 61 20 6d 6f 72 65 20 75 |d), and |a more u|
|00002040| 6e 69 66 6f 72 6d 20 62 | 6f 6f 74 20 74 69 6d 65 |niform b|oot time|
|00002050| 20 61 70 70 65 61 72 61 | 6e 63 65 20 63 61 6e 20 | appeara|nce can |
|00002060| 68 65 6c 70 20 61 63 68 | 69 65 76 65 20 74 68 69 |help ach|ieve thi|
|00002070| 73 20 67 6f 61 6c 2e 0d | 46 75 72 74 68 65 72 20 |s goal..|Further |
|00002080| 52 65 66 65 72 65 6e 63 | 65 3a 0d a5 20 4d 2e 54 |Referenc|e:.. M.T|
|00002090| 42 2e 4e 6f 74 69 66 69 | 63 61 74 69 6f 6e 20 4d |B.Notifi|cation M|
|000020a0| 61 6e 61 67 65 72 0d 4f | 6d 65 67 61 53 41 4e 45 |anager.O|megaSANE|
|000020b0| 0d 4f 70 65 72 61 74 69 | 6e 67 20 53 79 73 74 65 |.Operati|ng Syste|
|000020c0| 6d 09 4d 2e 4f 53 2e 4f | 6d 65 67 61 53 41 4e 45 |m.M.OS.O|megaSANE|
|000020d0| 0d 57 72 69 74 74 65 6e | 20 62 79 3a 09 44 61 76 |.Written| by:.Dav|
|000020e0| 65 20 52 61 64 63 6c 69 | 66 66 65 20 61 6e 64 20 |e Radcli|ffe and |
|000020f0| 43 6f 6c 69 6e 20 4d 63 | 4d 61 73 74 65 72 09 4d |Colin Mc|Master.M|
|00002100| 61 79 20 31 39 39 32 0d | 53 79 73 74 65 6d 20 37 |ay 1992.|System 7|
|00002110| 2e 30 2e 31 20 69 6e 74 | 72 6f 64 75 63 65 64 20 |.0.1 int|roduced |
|00002120| 61 20 6e 65 77 20 76 65 | 72 73 69 6f 6e 20 6f 66 |a new ve|rsion of|
|00002130| 20 53 41 4e 45 20 28 74 | 68 65 20 53 74 61 6e 64 | SANE (t|he Stand|
|00002140| 61 72 64 20 41 70 70 6c | 65 20 4e 75 6d 65 72 69 |ard Appl|e Numeri|
|00002150| 63 73 20 45 6e 76 69 72 | 6f 6e 6d 65 6e 74 29 20 |cs Envir|onment) |
|00002160| 6b 6e 6f 77 6e 20 61 73 | 20 4f 6d 65 67 61 53 41 |known as| OmegaSA|
|00002170| 4e 45 2e 20 20 54 68 69 | 73 20 4e 6f 74 65 20 64 |NE. Thi|s Note d|
|00002180| 69 73 63 75 73 73 65 73 | 20 74 68 65 20 66 65 61 |iscusses| the fea|
|00002190| 74 75 72 65 73 20 6f 66 | 20 4f 6d 65 67 61 53 41 |tures of| OmegaSA|
|000021a0| 4e 45 20 61 6e 64 20 74 | 68 65 20 61 73 73 6f 63 |NE and t|he assoc|
|000021b0| 69 61 74 65 64 20 63 6f | 6d 70 61 74 69 62 69 6c |iated co|mpatibil|
|000021c0| 69 74 79 20 72 69 73 6b | 73 2e 20 20 54 68 69 73 |ity risk|s. This|
|000021d0| 20 6e 6f 74 65 20 63 6f | 76 65 72 73 3a 0d 54 6f | note co|vers:.To|
|000021e0| 70 69 63 73 0d a5 09 4f | 6d 65 67 61 53 41 4e 45 |pics...O|megaSANE|
|000021f0| 20 66 65 61 74 75 72 65 | 73 2c 20 69 6e 63 6c 75 | feature|s, inclu|
|00002200| 64 69 6e 67 3a 0d 09 a5 | 20 43 6f 72 72 65 63 74 |ding:...| Correct|
|00002210| 6c 79 20 72 6f 75 6e 64 | 65 64 20 62 69 6e 61 72 |ly round|ed binar|
|00002220| 79 20 ab 20 64 65 63 69 | 6d 61 6c 20 63 6f 6e 76 |y . deci|mal conv|
|00002230| 65 72 73 69 6f 6e 73 0d | 09 a5 20 46 61 73 74 65 |ersions.|.. Faste|
|00002240| 72 20 74 72 61 6e 73 63 | 65 6e 64 65 6e 74 61 6c |r transc|endental|
|00002250| 20 66 75 6e 63 74 69 6f | 6e 73 0d 09 a5 20 42 61 | functio|ns... Ba|
|00002260| 63 6b 70 61 74 63 68 69 | 6e 67 20 6f 66 20 50 61 |ckpatchi|ng of Pa|
|00002270| 63 6b 20 34 20 53 41 4e | 45 20 74 72 61 70 73 20 |ck 4 SAN|E traps |
|00002280| 66 6f 72 20 66 61 73 74 | 65 72 20 09 70 61 63 6b |for fast|er .pack|
|00002290| 61 67 65 20 65 6e 74 72 | 79 0d a5 09 43 6f 6d 70 |age entr|y...Comp|
|000022a0| 61 74 69 62 69 6c 69 74 | 79 20 72 69 73 6b 73 20 |atibilit|y risks |
|000022b0| 64 75 65 20 74 6f 20 62 | 61 63 6b 70 61 74 63 68 |due to b|ackpatch|
|000022c0| 69 6e 67 0d 49 6e 74 72 | 6f 64 75 63 74 69 6f 6e |ing.Intr|oduction|
|000022d0| 0d 53 79 73 74 65 6d 20 | 37 2e 30 2e 31 20 69 6e |.System |7.0.1 in|
|000022e0| 74 72 6f 64 75 63 65 64 | 20 61 20 6e 65 77 20 76 |troduced| a new v|
|000022f0| 65 72 73 69 6f 6e 20 6f | 66 20 74 68 65 20 53 74 |ersion o|f the St|
|00002300| 61 6e 64 61 72 64 20 41 | 70 70 6c 65 20 4e 75 6d |andard A|pple Num|
|00002310| 65 72 69 63 73 20 45 6e | 76 69 72 6f 6e 6d 65 6e |erics En|vironmen|
|00002320| 74 20 28 53 41 4e 45 29 | 20 70 61 63 6b 61 67 65 |t (SANE)| package|
|00002330| 20 20 72 65 66 65 72 72 | 65 64 20 74 6f 20 61 73 | referr|ed to as|
|00002340| 20 4f 6d 65 67 61 53 41 | 4e 45 20 28 bd 53 41 4e | OmegaSA|NE (.SAN|
|00002350| 45 29 2e 20 57 68 69 6c | 65 20 69 74 20 69 6d 70 |E). Whil|e it imp|
|00002360| 72 6f 76 65 73 20 74 68 | 65 20 70 65 72 66 6f 72 |roves th|e perfor|
|00002370| 6d 61 6e 63 65 20 6f 66 | 20 53 41 4e 45 2c 20 69 |mance of| SANE, i|
|00002380| 74 20 69 73 20 6e 6f 74 | 20 77 69 74 68 6f 75 74 |t is not| without|
|00002390| 20 63 6f 6d 70 61 74 69 | 62 69 6c 69 74 79 20 72 | compati|bility r|
|000023a0| 69 73 6b 73 2c 20 77 68 | 69 63 68 20 61 72 65 20 |isks, wh|ich are |
|000023b0| 64 65 74 61 69 6c 65 64 | 20 62 65 6c 6f 77 2e 20 |detailed| below. |
|000023c0| 4e 65 77 20 62 69 6e 61 | 72 79 20 ab 20 64 65 63 |New bina|ry . dec|
|000023d0| 69 6d 61 6c 20 63 6f 6e | 76 65 72 73 69 6f 6e 73 |imal con|versions|
|000023e0| 20 68 61 76 65 20 62 65 | 65 6e 20 69 6e 63 6c 75 | have be|en inclu|
|000023f0| 64 65 64 20 74 68 61 74 | 20 61 72 65 20 63 6f 72 |ded that| are cor|
|00002400| 72 65 63 74 6c 79 20 72 | 6f 75 6e 64 65 64 20 61 |rectly r|ounded a|
|00002410| 63 72 6f 73 73 20 74 68 | 65 20 65 6e 74 69 72 65 |cross th|e entire|
|00002420| 20 72 61 6e 67 65 20 6f | 66 20 64 6f 75 62 6c 65 | range o|f double|
|00002430| 20 65 78 74 65 6e 64 65 | 64 2e 20 54 68 69 73 20 | extende|d. This |
|00002440| 77 69 6c 6c 20 72 65 73 | 75 6c 74 20 69 6e 20 69 |will res|ult in i|
|00002450| 6e 63 6f 6d 70 61 74 69 | 62 69 6c 69 74 79 20 77 |ncompati|bility w|
|00002460| 69 74 68 20 70 72 65 76 | 69 6f 75 73 20 63 6f 6e |ith prev|ious con|
|00002470| 76 65 72 73 69 6f 6e 20 | 61 6c 67 6f 72 69 74 68 |version |algorith|
|00002480| 6d 73 20 66 6f 72 20 61 | 20 76 61 72 69 65 74 79 |ms for a| variety|
|00002490| 20 6f 66 20 69 6e 70 75 | 74 20 76 61 6c 75 65 73 | of inpu|t values|
|000024a0| 3b 20 74 68 65 20 72 65 | 73 75 6c 74 73 20 6f 66 |; the re|sults of|
|000024b0| 20 74 68 65 20 bd 53 41 | 4e 45 20 63 6f 6e 76 65 | the .SA|NE conve|
|000024c0| 72 73 69 6f 6e 73 20 61 | 72 65 20 75 6e 69 66 6f |rsions a|re unifo|
|000024d0| 72 6d 6c 79 20 6d 6f 72 | 65 20 61 63 63 75 72 61 |rmly mor|e accura|
|000024e0| 74 65 2c 20 61 6e 64 20 | 77 69 6c 6c 20 62 65 20 |te, and |will be |
|000024f0| 63 6f 6d 70 61 74 69 62 | 6c 65 20 77 69 74 68 20 |compatib|le with |
|00002500| 66 75 74 75 72 65 20 72 | 65 6c 65 61 73 65 73 20 |future r|eleases |
|00002510| 6f 66 20 53 41 4e 45 2e | 0d bd 53 41 4e 45 20 46 |of SANE.|..SANE F|
|00002520| 65 61 74 75 72 65 73 0d | 54 68 65 20 bd 53 41 4e |eatures.|The .SAN|
|00002530| 45 20 72 65 6c 65 61 73 | 65 20 70 72 6f 76 69 64 |E releas|e provid|
|00002540| 65 73 20 61 20 6e 75 6d | 62 65 72 20 6f 66 20 70 |es a num|ber of p|
|00002550| 65 72 66 6f 72 6d 61 6e | 63 65 20 65 6e 68 61 6e |erforman|ce enhan|
|00002560| 63 65 6d 65 6e 74 73 20 | 77 68 69 6c 65 20 6d 61 |cements |while ma|
|00002570| 69 6e 74 61 69 6e 69 6e | 67 20 63 6f 6e 66 6f 72 |intainin|g confor|
|00002580| 6d 61 6e 63 65 20 77 69 | 74 68 20 53 41 4e 45 2e |mance wi|th SANE.|
|00002590| 20 54 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 20 65 | The fol|lowing e|
|000025a0| 6e 68 61 6e 63 65 6d 65 | 6e 74 73 20 68 61 76 65 |nhanceme|nts have|
|000025b0| 20 62 65 65 6e 20 69 6d | 70 6c 65 6d 65 6e 74 65 | been im|plemente|
|000025c0| 64 3a 0d 09 a5 09 43 6f | 72 72 65 63 74 6c 79 20 |d:....Co|rrectly |
|000025d0| 72 6f 75 6e 64 65 64 20 | 62 69 6e 61 72 79 20 ab |rounded |binary .|
|000025e0| 20 64 65 63 69 6d 61 6c | 20 63 6f 6e 76 65 72 73 | decimal| convers|
|000025f0| 69 6f 6e 73 0d 09 a5 09 | 46 61 73 74 65 72 20 74 |ions....|Faster t|
|00002600| 72 61 6e 73 63 65 6e 64 | 65 6e 74 61 6c 20 66 75 |ranscend|ental fu|
|00002610| 6e 63 74 69 6f 6e 73 0d | 09 a5 09 42 61 63 6b 70 |nctions.|...Backp|
|00002620| 61 74 63 68 69 6e 67 20 | 6f 66 20 53 41 4e 45 20 |atching |of SANE |
|00002630| 74 72 61 70 73 20 66 6f | 72 20 66 61 73 74 65 72 |traps fo|r faster|
|00002640| 20 70 61 63 6b 61 67 65 | 20 65 6e 74 72 79 0d 54 | package| entry.T|
|00002650| 61 62 6c 65 73 20 73 68 | 6f 77 69 6e 67 20 74 68 |ables sh|owing th|
|00002660| 65 20 70 65 72 66 6f 72 | 6d 61 6e 63 65 20 6f 66 |e perfor|mance of|
|00002670| 20 bd 53 41 4e 45 20 61 | 72 65 20 67 69 76 65 6e | .SANE a|re given|
|00002680| 20 62 65 6c 6f 77 2e 20 | 41 20 6b 65 79 20 61 73 | below. |A key as|
|00002690| 70 65 63 74 20 6f 66 20 | 74 68 65 20 70 65 72 66 |pect of |the perf|
|000026a0| 6f 72 6d 61 6e 63 65 20 | 67 61 69 6e 20 69 73 20 |ormance |gain is |
|000026b0| 74 68 65 20 d2 62 61 63 | 6b 70 61 74 63 68 69 6e |the .bac|kpatchin|
|000026c0| 67 d3 20 6f 66 20 53 41 | 4e 45 20 74 72 61 70 73 |g. of SA|NE traps|
|000026d0| 2e 20 54 68 69 73 20 6d | 65 63 68 61 6e 69 73 6d |. This m|echanism|
|000026e0| 20 77 69 6c 6c 20 62 65 | 20 64 69 73 63 75 73 73 | will be| discuss|
|000026f0| 65 64 20 62 65 6c 6f 77 | 20 75 6e 64 65 72 20 d2 |ed below| under .|
|00002700| 50 69 74 66 61 6c 6c 73 | 2e d3 0d 54 68 65 20 76 |Pitfalls|...The v|
|00002710| 65 72 73 69 6f 6e 20 6f | 66 20 bd 53 41 4e 45 20 |ersion o|f .SANE |
|00002720| 73 75 70 70 6c 69 65 64 | 20 77 69 74 68 20 53 79 |supplied| with Sy|
|00002730| 73 74 65 6d 20 37 2e 30 | 2e 31 20 69 6e 73 74 61 |stem 7.0|.1 insta|
|00002740| 6c 6c 73 20 6f 6e 6c 79 | 20 6f 6e 20 6d 61 63 68 |lls only| on mach|
|00002750| 69 6e 65 73 20 65 71 75 | 69 70 70 65 64 20 77 69 |ines equ|ipped wi|
|00002760| 74 68 20 61 20 4d 61 63 | 69 6e 74 6f 73 68 20 49 |th a Mac|intosh I|
|00002770| 49 63 69 20 52 4f 4d 20 | 6f 72 20 6c 61 74 65 72 |Ici ROM |or later|
|00002780| 20 61 6e 64 20 61 6c 73 | 6f 20 65 71 75 69 70 70 | and als|o equipp|
|00002790| 65 64 20 77 69 74 68 20 | 61 6e 20 46 50 55 2e 20 |ed with |an FPU. |
|000027a0| 46 6f 72 20 65 78 61 6d | 70 6c 65 2c 20 69 74 20 |For exam|ple, it |
|000027b0| 69 6e 73 74 61 6c 6c 73 | 20 6f 6e 20 61 20 4d 61 |installs| on a Ma|
|000027c0| 63 69 6e 74 6f 73 68 20 | 49 49 73 69 20 72 75 6e |cintosh |IIsi run|
|000027d0| 6e 69 6e 67 20 53 79 73 | 74 65 6d 20 37 2e 30 2e |ning Sys|tem 7.0.|
|000027e0| 31 20 61 6e 64 20 65 71 | 75 69 70 70 65 64 20 77 |1 and eq|uipped w|
|000027f0| 69 74 68 20 61 6e 20 46 | 50 55 2c 20 62 75 74 20 |ith an F|PU, but |
|00002800| 6e 6f 74 20 6f 6e 20 6f | 6e 65 20 77 69 74 68 6f |not on o|ne witho|
|00002810| 75 74 20 61 6e 20 46 50 | 55 2e 20 4f 6e 20 74 68 |ut an FP|U. On th|
|00002820| 65 20 4d 61 63 69 6e 74 | 6f 73 68 20 51 75 61 64 |e Macint|osh Quad|
|00002830| 72 61 73 20 61 6e 64 20 | 74 68 65 20 50 6f 77 65 |ras and |the Powe|
|00002840| 72 42 6f 6f 6b 20 31 34 | 30 2f 31 37 30 20 69 74 |rBook 14|0/170 it|
|00002850| 20 69 73 20 69 6e 20 52 | 4f 4d 2c 20 61 6c 74 68 | is in R|OM, alth|
|00002860| 6f 75 67 68 20 69 74 20 | 64 6f 65 73 6e d5 74 20 |ough it |doesn.t |
|00002870| 6c 6f 61 64 20 6f 6e 20 | 74 68 65 20 50 6f 77 65 |load on |the Powe|
|00002880| 72 42 6f 6f 6b 20 31 34 | 30 20 75 6e 6c 65 73 73 |rBook 14|0 unless|
|00002890| 20 69 74 20 68 61 73 20 | 61 6e 20 6f 70 74 69 6f | it has |an optio|
|000028a0| 6e 61 6c 20 46 50 55 2e | 20 20 4f 6e 20 6d 61 63 |nal FPU.| On mac|
|000028b0| 68 69 6e 65 73 20 77 68 | 65 72 65 20 74 68 65 20 |hines wh|ere the |
|000028c0| 46 50 55 20 69 73 20 6f | 70 74 69 6f 6e 61 6c 2c |FPU is o|ptional,|
|000028d0| 20 61 64 64 69 74 69 6f | 6e 20 6f 66 20 61 6e 20 | additio|n of an |
|000028e0| 46 50 55 20 6d 61 79 20 | 72 65 71 75 69 72 65 20 |FPU may |require |
|000028f0| 72 65 2d 69 6e 73 74 61 | 6c 6c 61 74 69 6f 6e 20 |re-insta|llation |
|00002900| 6f 66 20 53 79 73 74 65 | 6d 20 37 2e 30 2e 31 20 |of Syste|m 7.0.1 |
|00002910| 62 65 66 6f 72 65 20 74 | 68 65 20 46 50 55 20 76 |before t|he FPU v|
|00002920| 65 72 73 69 6f 6e 20 6f | 66 20 bd 53 41 4e 45 20 |ersion o|f .SANE |
|00002930| 77 69 6c 6c 20 6c 6f 61 | 64 2e 0d 54 61 62 6c 65 |will loa|d..Table|
|00002940| 20 31 20 70 72 65 73 65 | 6e 74 73 20 63 6f 6e 66 | 1 prese|nts conf|
|00002950| 69 67 75 72 61 74 69 6f | 6e 20 69 6e 66 6f 72 6d |iguratio|n inform|
|00002960| 61 74 69 6f 6e 20 63 6f | 6e 63 65 72 6e 69 6e 67 |ation co|ncerning|
|00002970| 20 74 68 65 20 76 65 72 | 73 69 6f 6e 73 20 6f 66 | the ver|sions of|
|00002980| 20 53 41 4e 45 20 77 68 | 69 63 68 20 6d 61 79 20 | SANE wh|ich may |
|00002990| 62 65 20 69 6e 73 74 61 | 6c 6c 65 64 20 62 79 20 |be insta|lled by |
|000029a0| 53 79 73 74 65 6d 20 37 | 2e 30 2e 31 2e 20 49 6e |System 7|.0.1. In|
|000029b0| 66 6f 72 6d 61 74 69 6f | 6e 20 69 6e 20 74 68 69 |formatio|n in thi|
|000029c0| 73 20 74 61 62 6c 65 20 | 69 73 20 73 75 62 6a 65 |s table |is subje|
|000029d0| 63 74 20 74 6f 20 63 68 | 61 6e 67 65 2e 20 54 68 |ct to ch|ange. Th|
|000029e0| 65 20 46 50 55 20 63 6f | 6c 75 6d 6e 20 73 74 61 |e FPU co|lumn sta|
|000029f0| 74 65 73 20 77 68 65 74 | 68 65 72 20 74 68 65 20 |tes whet|her the |
|00002a00| 6d 61 63 68 69 6e 65 20 | 68 61 73 20 61 6e 20 46 |machine |has an F|
|00002a10| 50 55 20 6f 72 20 69 66 | 20 69 74 20 69 73 20 6f |PU or if| it is o|
|00002a20| 70 74 69 6f 6e 61 6c 2e | 20 54 68 65 20 63 6f 6c |ptional.| The col|
|00002a30| 75 6d 6e 20 6c 61 62 65 | 6c 65 64 20 d2 43 6f 72 |umn labe|led .Cor|
|00002a40| 72 65 63 74 6c 79 20 52 | 6f 75 6e 64 65 64 20 42 |rectly R|ounded B|
|00002a50| 69 6e 20 ab 20 44 65 63 | d3 20 73 68 6f 77 73 20 |in . Dec|. shows |
|00002a60| 77 68 65 74 68 65 72 20 | 69 6d 70 72 6f 76 65 64 |whether |improved|
|00002a70| 20 76 65 72 73 69 6f 6e | 73 20 6f 66 20 74 68 65 | version|s of the|
|00002a80| 20 62 69 6e 61 72 79 20 | ab 20 64 65 63 69 6d 61 | binary |. decima|
|00002a90| 6c 20 63 6f 6e 76 65 72 | 73 69 6f 6e 20 72 6f 75 |l conver|sion rou|
|00002aa0| 74 69 6e 65 73 20 28 64 | 69 73 63 75 73 73 65 64 |tines (d|iscussed|
|00002ab0| 20 62 65 6c 6f 77 29 20 | 61 72 65 20 61 76 61 69 | below) |are avai|
|00002ac0| 6c 61 62 6c 65 2c 20 61 | 6e 64 20 77 68 69 63 68 |lable, a|nd which|
|00002ad0| 20 76 65 72 73 69 6f 6e | 20 28 56 2e 31 20 6f 72 | version| (V.1 or|
|00002ae0| 20 56 2e 32 29 20 69 73 | 20 73 75 70 70 6c 69 65 | V.2) is| supplie|
|00002af0| 64 2e 20 54 68 65 20 d2 | bd 53 41 4e 45 20 46 50 |d. The .|.SANE FP|
|00002b00| 55 20 56 65 72 73 69 6f | 6e d3 20 63 6f 6c 75 6d |U Versio|n. colum|
|00002b10| 6e 20 73 74 61 74 65 73 | 20 77 68 65 74 68 65 72 |n states| whether|
|00002b20| 20 bd 53 41 4e 45 20 77 | 69 6c 6c 20 6c 6f 61 64 | .SANE w|ill load|
|00002b30| 20 6f 6e 20 61 20 67 69 | 76 65 6e 20 63 6f 6e 66 | on a gi|ven conf|
|00002b40| 69 67 75 72 61 74 69 6f | 6e 2e 20 0d 4e 6f 74 65 |iguratio|n. .Note|
|00002b50| 3a 20 20 54 68 65 20 69 | 6e 66 6f 72 6d 61 74 69 |: The i|nformati|
|00002b60| 6f 6e 20 69 6e 20 74 68 | 69 73 20 74 61 62 6c 65 |on in th|is table|
|00002b70| 20 77 69 6c 6c 20 75 6e | 64 6f 75 62 74 65 64 6c | will un|doubtedl|
|00002b80| 79 20 63 68 61 6e 67 65 | 20 69 6e 20 74 68 65 20 |y change| in the |
|00002b90| 66 75 74 75 72 65 2e 20 | 20 44 65 76 65 6c 6f 70 |future. | Develop|
|00002ba0| 65 72 73 20 73 68 6f 75 | 6c 64 20 6e 6f 74 20 61 |ers shou|ld not a|
|00002bb0| 73 73 75 6d 65 20 74 68 | 61 74 20 61 6e 79 20 70 |ssume th|at any p|
|00002bc0| 61 72 74 69 63 75 6c 61 | 72 20 6d 61 63 68 69 6e |articula|r machin|
|00002bd0| 65 2f 73 79 73 74 65 6d | 20 73 6f 66 74 77 61 72 |e/system| softwar|
|00002be0| 65 20 63 6f 6d 62 69 6e | 61 74 69 6f 6e 20 64 6f |e combin|ation do|
|00002bf0| 65 73 20 6f 72 20 64 6f | 65 73 20 6e 6f 74 20 68 |es or do|es not h|
|00002c00| 61 76 65 20 20 bd 53 41 | 4e 45 2e 0d 54 61 62 6c |ave .SA|NE..Tabl|
|00002c10| 65 20 31 20 20 53 41 4e | 45 20 43 6f 6e 66 69 67 |e 1 SAN|E Config|
|00002c20| 75 72 61 74 69 6f 6e 73 | 0d 4d 61 63 69 6e 74 6f |urations|.Macinto|
|00002c30| 73 68 20 43 50 55 09 46 | 50 55 09 43 6f 72 72 65 |sh CPU.F|PU.Corre|
|00002c40| 63 74 6c 79 20 52 6f 75 | 6e 64 65 64 20 42 69 6e |ctly Rou|nded Bin|
|00002c50| ab 44 65 63 09 bd 53 41 | 4e 45 0d 46 50 55 20 56 |.Dec..SA|NE.FPU V|
|00002c60| 65 72 73 69 6f 6e 09 0d | 4d 61 63 20 50 6c 75 73 |ersion..|Mac Plus|
|00002c70| 09 4e 6f 09 4e 6f 09 4e | 6f 09 0d 4d 61 63 20 53 |.No.No.N|o..Mac S|
|00002c80| 45 09 4e 6f 09 4e 6f 09 | 4e 6f 09 0d 4d 61 63 20 |E.No.No.|No..Mac |
|00002c90| 43 6c 61 73 73 69 63 09 | 4e 6f 09 4e 6f 09 4e 6f |Classic.|No.No.No|
|00002ca0| 09 0d 4d 61 63 20 43 6c | 61 73 73 69 63 20 49 49 |..Mac Cl|assic II|
|00002cb0| 09 4f 70 74 69 6f 6e 61 | 6c 09 56 2e 32 20 69 6e |.Optiona|l.V.2 in|
|00002cc0| 20 52 4f 4d 09 77 2f 20 | 37 2e 30 2e 31 20 26 20 | ROM.w/ |7.0.1 & |
|00002cd0| 46 50 55 a0 09 0d 4d 61 | 63 20 4c 43 09 4f 70 74 |FPU...Ma|c LC.Opt|
|00002ce0| 69 6f 6e 61 6c 09 56 2e | 31 20 69 6e 20 52 4f 4d |ional.V.|1 in ROM|
|00002cf0| 09 77 2f 20 37 2e 30 2e | 31 20 26 20 46 50 55 a0 |.w/ 7.0.|1 & FPU.|
|00002d00| 09 0d 4d 61 63 20 49 49 | 73 69 09 4f 70 74 69 6f |..Mac II|si.Optio|
|00002d10| 6e 61 6c 09 56 2e 31 20 | 69 6e 20 52 4f 4d 09 77 |nal.V.1 |in ROM.w|
|00002d20| 2f 20 37 2e 30 2e 31 20 | 26 20 46 50 55 a0 09 0d |/ 7.0.1 |& FPU...|
|00002d30| 4d 61 63 20 53 45 2f 33 | 30 09 59 65 73 09 4e 6f |Mac SE/3|0.Yes.No|
|00002d40| 09 4e 6f 09 0d 4d 61 63 | 20 49 49 09 59 65 73 09 |.No..Mac| II.Yes.|
|00002d50| 4e 6f 09 4e 6f 09 0d 4d | 61 63 20 49 49 78 09 59 |No.No..M|ac IIx.Y|
|00002d60| 65 73 09 4e 6f 09 4e 6f | 09 0d 4d 61 63 20 49 49 |es.No.No|..Mac II|
|00002d70| 63 78 09 59 65 73 09 4e | 6f 09 4e 6f 09 0d 4d 61 |cx.Yes.N|o.No..Ma|
|00002d80| 63 20 49 49 63 69 09 59 | 65 73 09 56 2e 32 20 77 |c IIci.Y|es.V.2 w|
|00002d90| 69 74 68 20 37 2e 30 2e | 31 09 77 2f 20 37 2e 30 |ith 7.0.|1.w/ 7.0|
|00002da0| 2e 31 09 0d 4d 61 63 20 | 49 49 66 78 09 59 65 73 |.1..Mac |IIfx.Yes|
|00002db0| 09 56 2e 32 20 77 69 74 | 68 20 37 2e 30 2e 31 09 |.V.2 wit|h 7.0.1.|
|00002dc0| 77 2f 20 37 2e 30 2e 31 | 09 0d 50 6f 77 65 72 42 |w/ 7.0.1|..PowerB|
|00002dd0| 6f 6f 6b 20 31 30 30 09 | 59 65 73 09 4e 6f 09 4e |ook 100.|Yes.No.N|
|00002de0| 6f 09 0d 50 6f 77 65 72 | 42 6f 6f 6b 20 31 34 30 |o..Power|Book 140|
|00002df0| 09 4f 70 74 69 6f 6e 61 | 6c 09 56 2e 32 20 69 6e |.Optiona|l.V.2 in|
|00002e00| 20 52 4f 4d 09 77 2f 20 | 37 2e 30 2e 31 20 26 20 | ROM.w/ |7.0.1 & |
|00002e10| 46 50 55 a0 09 0d 50 6f | 77 65 72 42 6f 6f 6b 20 |FPU...Po|werBook |
|00002e20| 31 37 30 09 59 65 73 09 | 56 2e 32 20 69 6e 20 52 |170.Yes.|V.2 in R|
|00002e30| 4f 4d 09 59 65 73 09 0d | 51 75 61 64 72 61 20 37 |OM.Yes..|Quadra 7|
|00002e40| 30 30 09 59 65 73 09 56 | 2e 32 20 69 6e 20 52 4f |00.Yes.V|.2 in RO|
|00002e50| 4d 09 59 65 73 09 0d 51 | 75 61 64 72 61 20 39 30 |M.Yes..Q|uadra 90|
|00002e60| 30 09 59 65 73 09 56 2e | 32 20 69 6e 20 52 4f 4d |0.Yes.V.|2 in ROM|
|00002e70| 09 59 65 73 09 0d a0 20 | 46 50 55 20 6f 70 74 69 |.Yes... |FPU opti|
|00002e80| 6f 6e 61 6c 20 73 79 73 | 74 65 6d 73 20 6d 61 79 |onal sys|tems may|
|00002e90| 20 72 65 71 75 69 72 65 | 20 72 65 69 6e 73 74 61 | require| reinsta|
|00002ea0| 6c 6c 61 74 69 6f 6e 20 | 6f 66 0d 53 79 73 74 65 |llation |of.Syste|
|00002eb0| 6d 20 37 2e 30 2e 31 20 | 61 66 74 65 72 20 69 6e |m 7.0.1 |after in|
|00002ec0| 73 74 61 6c 6c 61 74 69 | 6f 6e 20 6f 66 20 61 6e |stallati|on of an|
|00002ed0| 20 46 50 55 20 62 65 66 | 6f 72 65 20 74 68 65 20 | FPU bef|ore the |
|00002ee0| 0d bd 53 41 4e 45 20 46 | 50 55 20 76 65 72 73 69 |..SANE F|PU versi|
|00002ef0| 6f 6e 20 77 69 6c 6c 20 | 6c 6f 61 64 2e 0d 54 68 |on will |load..Th|
|00002f00| 65 72 65 20 69 73 20 6e | 6f 20 77 61 79 20 70 72 |ere is n|o way pr|
|00002f10| 6f 67 72 61 6d 6d 61 74 | 69 63 61 6c 6c 79 20 74 |ogrammat|ically t|
|00002f20| 6f 20 64 69 73 61 62 6c | 65 20 bd 53 41 4e 45 20 |o disabl|e .SANE |
|00002f30| 69 6e 20 53 79 73 74 65 | 6d 20 37 2e 30 2e 31 2c |in Syste|m 7.0.1,|
|00002f40| 20 6e 6f 72 20 69 73 20 | 69 74 20 61 20 75 73 65 | nor is |it a use|
|00002f50| 72 20 6f 70 74 69 6f 6e | 2e 20 20 54 68 65 72 65 |r option|. There|
|00002f60| 20 69 73 20 61 6c 73 6f | 20 6e 6f 20 77 61 79 20 | is also| no way |
|00002f70| 74 6f 20 72 65 6c 69 61 | 62 6c 79 20 64 65 74 65 |to relia|bly dete|
|00002f80| 63 74 20 74 68 61 74 20 | bd 53 41 4e 45 20 69 73 |ct that |.SANE is|
|00002f90| 20 70 72 65 73 65 6e 74 | 2e 0d 42 69 6e 61 72 79 | present|..Binary|
|00002fa0| 20 ab 20 44 65 63 69 6d | 61 6c 20 43 6f 6e 76 65 | . Decim|al Conve|
|00002fb0| 72 73 69 6f 6e 73 0d bd | 53 41 4e 45 20 69 6e 63 |rsions..|SANE inc|
|00002fc0| 6c 75 64 65 73 20 62 69 | 6e 61 72 79 20 ab 20 64 |ludes bi|nary . d|
|00002fd0| 65 63 69 6d 61 6c 20 63 | 6f 6e 76 65 72 73 69 6f |ecimal c|onversio|
|00002fe0| 6e 20 72 6f 75 74 69 6e | 65 73 20 74 68 61 74 20 |n routin|es that |
|00002ff0| 6d 61 79 20 70 72 6f 64 | 75 63 65 20 72 65 73 75 |may prod|uce resu|
|00003000| 6c 74 73 20 74 68 61 74 | 20 64 69 66 66 65 72 20 |lts that| differ |
|00003010| 66 72 6f 6d 20 70 72 65 | 76 69 6f 75 73 20 76 65 |from pre|vious ve|
|00003020| 72 73 69 6f 6e 73 20 6f | 66 20 53 41 4e 45 2e 20 |rsions o|f SANE. |
|00003030| 56 65 72 73 69 6f 6e 73 | 20 6f 66 20 74 68 65 73 |Versions| of thes|
|00003040| 65 20 72 6f 75 74 69 6e | 65 73 20 68 61 76 65 20 |e routin|es have |
|00003050| 62 65 65 6e 20 69 6e 20 | 73 6f 6d 65 20 6d 61 63 |been in |some mac|
|00003060| 68 69 6e 65 20 52 4f 4d | 73 20 73 69 6e 63 65 20 |hine ROM|s since |
|00003070| 74 68 65 20 4d 61 63 69 | 6e 74 6f 73 68 20 49 49 |the Maci|ntosh II|
|00003080| 73 69 2c 20 61 6e 64 20 | 61 6e 20 69 6d 70 72 6f |si, and |an impro|
|00003090| 76 65 64 20 76 65 72 73 | 69 6f 6e 20 28 56 2e 32 |ved vers|ion (V.2|
|000030a0| 29 20 69 73 20 69 6e 20 | 74 68 65 20 6e 65 77 65 |) is in |the newe|
|000030b0| 73 74 20 52 4f 4d 73 2c | 20 61 73 20 77 65 6c 6c |st ROMs,| as well|
|000030c0| 20 61 73 20 bd 53 41 4e | 45 2e 20 52 65 66 65 72 | as .SAN|E. Refer|
|000030d0| 20 74 6f 20 54 61 62 6c | 65 20 31 20 66 6f 72 20 | to Tabl|e 1 for |
|000030e0| 63 75 72 72 65 6e 74 20 | 63 6f 6e 66 69 67 75 72 |current |configur|
|000030f0| 61 74 69 6f 6e 20 69 6e | 66 6f 72 6d 61 74 69 6f |ation in|formatio|
|00003100| 6e 2e 20 41 73 20 61 20 | 72 65 73 75 6c 74 20 6f |n. As a |result o|
|00003110| 66 20 74 68 65 73 65 20 | 69 6d 70 72 6f 76 65 64 |f these |improved|
|00003120| 20 63 6f 6e 76 65 72 73 | 69 6f 6e 20 72 6f 75 74 | convers|ion rout|
|00003130| 69 6e 65 73 2c 20 66 6c | 6f 61 74 69 6e 67 2d 70 |ines, fl|oating-p|
|00003140| 6f 69 6e 74 20 63 6f 6e | 73 74 61 6e 74 73 20 74 |oint con|stants t|
|00003150| 68 61 74 20 61 72 65 20 | 75 73 65 64 20 69 6e 20 |hat are |used in |
|00003160| 74 68 65 20 62 6f 64 79 | 20 6f 66 20 73 6f 75 72 |the body| of sour|
|00003170| 63 65 20 63 6f 64 65 20 | 77 69 6c 6c 20 63 6f 6d |ce code |will com|
|00003180| 70 69 6c 65 20 64 69 66 | 66 65 72 65 6e 74 6c 79 |pile dif|ferently|
|00003190| 20 69 6e 20 74 68 65 20 | 70 72 65 73 65 6e 63 65 | in the |presence|
|000031a0| 20 6f 66 20 bd 53 41 4e | 45 20 74 68 61 6e 20 77 | of .SAN|E than w|
|000031b0| 69 74 68 20 6f 6c 64 65 | 72 20 53 41 4e 45 20 65 |ith olde|r SANE e|
|000031c0| 6e 67 69 6e 65 73 2e 20 | 54 68 65 20 72 65 73 75 |ngines. |The resu|
|000031d0| 6c 74 73 20 61 72 65 20 | 75 6e 69 66 6f 72 6d 6c |lts are |uniforml|
|000031e0| 79 20 62 65 74 74 65 72 | 2c 20 62 75 74 20 6d 61 |y better|, but ma|
|000031f0| 79 20 63 61 75 73 65 20 | 75 6e 65 78 70 65 63 74 |y cause |unexpect|
|00003200| 65 64 20 76 61 72 69 61 | 6e 63 65 73 20 66 72 6f |ed varia|nces fro|
|00003210| 6d 20 74 65 73 74 20 73 | 75 69 74 65 73 20 28 66 |m test s|uites (f|
|00003220| 6f 72 20 69 6e 73 74 61 | 6e 63 65 29 2e 20 54 68 |or insta|nce). Th|
|00003230| 65 72 65 66 6f 72 65 2c | 20 63 61 72 65 20 6d 75 |erefore,| care mu|
|00003240| 73 74 20 62 65 20 67 69 | 76 65 6e 20 74 6f 20 74 |st be gi|ven to t|
|00003250| 68 65 20 61 72 69 74 68 | 6d 65 74 69 63 20 65 6e |he arith|metic en|
|00003260| 76 69 72 6f 6e 6d 65 6e | 74 20 69 6e 20 77 68 69 |vironmen|t in whi|
|00003270| 63 68 20 63 6f 6d 70 69 | 6c 61 74 69 6f 6e 73 20 |ch compi|lations |
|00003280| 61 72 65 20 6d 61 64 65 | 2e 20 4f 6e 65 20 63 61 |are made|. One ca|
|00003290| 6e 20 74 65 6c 6c 20 77 | 68 69 63 68 20 76 65 72 |n tell w|hich ver|
|000032a0| 73 69 6f 6e 20 6f 66 20 | 74 68 65 20 62 69 6e 61 |sion of |the bina|
|000032b0| 72 79 ab 64 65 63 69 6d | 61 6c 20 63 6f 6e 76 65 |ry.decim|al conve|
|000032c0| 72 73 69 6f 6e 73 20 69 | 73 20 63 75 72 72 65 6e |rsions i|s curren|
|000032d0| 74 6c 79 20 69 6e 20 75 | 73 65 20 62 79 20 70 65 |tly in u|se by pe|
|000032e0| 72 66 6f 72 6d 69 6e 67 | 20 74 68 65 20 66 6f 6c |rforming| the fol|
|000032f0| 6c 6f 77 69 6e 67 20 63 | 6f 6d 70 75 74 61 74 69 |lowing c|omputati|
|00003300| 6f 6e 20 6f 6e 20 74 68 | 65 20 43 61 6c 63 75 6c |on on th|e Calcul|
|00003310| 61 74 6f 72 20 44 41 3a | 20 20 34 35 2f 31 30 30 |ator DA:| 45/100|
|00003320| ca d0 20 30 2e 34 35 2e | 20 4f 6e 20 6f 6c 64 65 |.. 0.45.| On olde|
|00003330| 72 20 76 65 72 73 69 6f | 6e 73 20 6f 66 20 53 41 |r versio|ns of SA|
|00003340| 4e 45 2c 20 74 68 65 20 | 72 65 73 75 6c 74 20 69 |NE, the |result i|
|00003350| 73 20 d0 32 2e 37 31 30 | 35 31 45 2d 32 30 2e 20 |s .2.710|51E-20. |
|00003360| 57 69 74 68 20 bd 53 41 | 4e 45 2c 20 74 68 65 20 |With .SA|NE, the |
|00003370| 72 65 73 75 6c 74 20 69 | 73 20 30 20 61 73 20 65 |result i|s 0 as e|
|00003380| 78 70 65 63 74 65 64 2e | 0d 50 65 72 66 6f 72 6d |xpected.|.Perform|
|00003390| 61 6e 63 65 20 49 6d 70 | 72 6f 76 65 6d 65 6e 74 |ance Imp|rovement|
|000033a0| 73 0d bd 53 41 4e 45 20 | 63 61 6e 20 73 69 67 6e |s..SANE |can sign|
|000033b0| 69 66 69 63 61 6e 74 6c | 79 20 69 6d 70 72 6f 76 |ificantl|y improv|
|000033c0| 65 20 74 68 65 20 70 65 | 72 66 6f 72 6d 61 6e 63 |e the pe|rformanc|
|000033d0| 65 20 6f 66 20 6d 61 6e | 79 20 66 6c 6f 61 74 69 |e of man|y floati|
|000033e0| 6e 67 2d 70 6f 69 6e 74 | 20 53 41 4e 45 20 6f 70 |ng-point| SANE op|
|000033f0| 65 72 61 74 69 6f 6e 73 | 2e 20 49 74 20 64 6f 65 |erations|. It doe|
|00003400| 73 20 74 68 69 73 20 62 | 79 20 72 65 70 6c 61 63 |s this b|y replac|
|00003410| 69 6e 67 20 5f 46 50 36 | 38 4b 20 74 72 61 70 20 |ing _FP6|8K trap |
|00003420| 63 61 6c 6c 73 20 77 69 | 74 68 20 4a 53 52 20 69 |calls wi|th JSR i|
|00003430| 6e 73 74 72 75 63 74 69 | 6f 6e 73 20 64 69 72 65 |nstructi|ons dire|
|00003440| 63 74 6c 79 20 69 6e 74 | 6f 20 74 68 65 20 61 70 |ctly int|o the ap|
|00003450| 70 72 6f 70 72 69 61 74 | 65 20 53 41 4e 45 20 63 |propriat|e SANE c|
|00003460| 6f 64 65 2e 20 54 68 69 | 73 20 69 73 20 64 69 73 |ode. Thi|s is dis|
|00003470| 63 75 73 73 65 64 20 69 | 6e 20 6d 6f 72 65 20 64 |cussed i|n more d|
|00003480| 65 74 61 69 6c 20 75 6e | 64 65 72 20 d2 50 69 74 |etail un|der .Pit|
|00003490| 66 61 6c 6c 73 2e d3 20 | 20 37 2e 30 2e 31 20 bd |falls.. | 7.0.1 .|
|000034a0| 53 41 4e 45 20 64 6f 65 | 73 20 6e 6f 74 20 61 6c |SANE doe|s not al|
|000034b0| 74 65 72 20 5f 45 6c 65 | 6d 73 36 38 4b 20 74 72 |ter _Ele|ms68K tr|
|000034c0| 61 70 20 63 61 6c 6c 73 | 2c 20 62 75 74 20 69 6e |ap calls|, but in|
|000034d0| 74 65 72 6e 61 6c 20 63 | 6f 64 65 20 69 6d 70 72 |ternal c|ode impr|
|000034e0| 6f 76 65 6d 65 6e 74 73 | 20 61 72 65 20 75 73 65 |ovements| are use|
|000034f0| 64 20 74 6f 20 69 6e 63 | 72 65 61 73 65 20 74 68 |d to inc|rease th|
|00003500| 65 20 70 65 72 66 6f 72 | 6d 61 6e 63 65 20 6f 66 |e perfor|mance of|
|00003510| 20 74 72 61 6e 73 63 65 | 6e 64 65 6e 74 61 6c 20 | transce|ndental |
|00003520| 66 75 6e 63 74 69 6f 6e | 73 2e 20 46 69 6e 61 6c |function|s. Final|
|00003530| 6c 79 2c 20 bd 53 41 4e | 45 20 64 6f 65 73 20 6e |ly, .SAN|E does n|
|00003540| 6f 74 20 61 66 66 65 63 | 74 20 74 68 65 20 70 65 |ot affec|t the pe|
|00003550| 72 66 6f 72 6d 61 6e 63 | 65 20 6f 66 20 63 6f 64 |rformanc|e of cod|
|00003560| 65 20 63 6f 6d 70 69 6c | 65 64 20 74 6f 20 75 73 |e compil|ed to us|
|00003570| 65 20 74 68 65 20 46 50 | 55 20 64 69 72 65 63 74 |e the FP|U direct|
|00003580| 6c 79 2c 20 61 6c 74 68 | 6f 75 67 68 20 73 6f 6d |ly, alth|ough som|
|00003590| 65 20 6c 69 62 72 61 72 | 79 20 72 6f 75 74 69 6e |e librar|y routin|
|000035a0| 65 73 20 75 73 65 64 20 | 77 69 74 68 20 73 75 63 |es used |with suc|
|000035b0| 68 20 63 6f 64 65 20 28 | 73 75 63 68 20 61 73 20 |h code (|such as |
|000035c0| 74 68 65 20 43 53 41 4e | 45 4c 69 62 38 38 31 2e |the CSAN|ELib881.|
|000035d0| 6f 20 72 6f 75 74 69 6e | 65 73 20 4e 65 78 74 41 |o routin|es NextA|
|000035e0| 66 74 65 72 2c 20 43 6c | 61 73 73 69 66 79 2c 20 |fter, Cl|assify, |
|000035f0| 53 63 61 6c 62 2c 20 61 | 6e 64 20 52 65 6d 61 69 |Scalb, a|nd Remai|
|00003600| 6e 64 65 72 29 20 77 69 | 6c 6c 20 62 65 20 62 61 |nder) wi|ll be ba|
|00003610| 63 6b 70 61 74 63 68 65 | 64 20 62 79 20 bd 53 41 |ckpatche|d by .SA|
|00003620| 4e 45 20 62 65 63 61 75 | 73 65 20 74 68 65 79 20 |NE becau|se they |
|00003630| 63 61 6c 6c 20 5f 46 50 | 36 38 4b 2e 0d 54 61 62 |call _FP|68K..Tab|
|00003640| 6c 65 20 32 20 73 68 6f | 77 73 20 74 79 70 69 63 |le 2 sho|ws typic|
|00003650| 61 6c 20 70 65 72 66 6f | 72 6d 61 6e 63 65 20 69 |al perfo|rmance i|
|00003660| 6d 70 72 6f 76 65 6d 65 | 6e 74 20 75 73 69 6e 67 |mproveme|nt using|
|00003670| 20 bd 53 41 4e 45 20 6f | 6e 20 61 20 4d 61 63 69 | .SANE o|n a Maci|
|00003680| 6e 74 6f 73 68 20 49 49 | 63 69 2e 20 4f 66 20 63 |ntosh II|ci. Of c|
|00003690| 6f 75 72 73 65 2c 20 61 | 63 74 75 61 6c 20 70 65 |ourse, a|ctual pe|
|000036a0| 72 66 6f 72 6d 61 6e 63 | 65 20 64 65 70 65 6e 64 |rformanc|e depend|
|000036b0| 73 20 6f 6e 20 68 6f 77 | 20 68 65 61 76 69 6c 79 |s on how| heavily|
|000036c0| 20 79 6f 75 20 75 73 65 | 20 53 41 4e 45 20 61 6e | you use| SANE an|
|000036d0| 64 20 74 68 65 20 6d 69 | 78 74 75 72 65 20 6f 66 |d the mi|xture of|
|000036e0| 20 53 41 4e 45 20 6f 70 | 65 72 61 74 69 6f 6e 73 | SANE op|erations|
|000036f0| 20 79 6f 75 20 75 73 65 | 2e 0d 54 61 62 6c 65 20 | you use|..Table |
|00003700| 32 20 20 53 41 4e 45 20 | 50 65 72 66 6f 72 6d 61 |2 SANE |Performa|
|00003710| 6e 63 65 0d 4f 70 65 72 | 61 74 69 6f 6e 09 4d 61 |nce.Oper|ation.Ma|
|00003720| 63 69 6e 74 6f 73 68 20 | 49 49 63 69 0d 53 41 4e |cintosh |IIci.SAN|
|00003730| 45 0d 28 69 6e 20 66 6c | 6f 70 73 29 09 4d 61 63 |E.(in fl|ops).Mac|
|00003740| 69 6e 74 6f 73 68 20 49 | 49 63 69 0d bd 53 41 4e |intosh I|Ici..SAN|
|00003750| 45 20 28 69 6e 20 66 6c | 6f 70 73 29 09 53 70 65 |E (in fl|ops).Spe|
|00003760| 65 64 75 70 20 46 61 63 | 74 6f 72 09 0d 41 64 64 |edup Fac|tor..Add|
|00003770| 2f 53 75 62 74 72 61 63 | 74 09 31 38 2c 37 39 34 |/Subtrac|t.18,794|
|00003780| 09 35 39 2c 32 35 39 09 | 33 2e 31 35 09 0d 4d 75 |.59,259.|3.15..Mu|
|00003790| 6c 74 69 70 6c 79 09 31 | 38 2c 31 38 32 09 35 33 |ltiply.1|8,182.53|
|000037a0| 2c 35 37 31 09 32 2e 39 | 35 09 0d 44 69 76 69 64 |,571.2.9|5..Divid|
|000037b0| 65 09 31 38 2c 34 37 36 | 09 35 35 2c 33 30 30 09 |e.18,476|.55,300.|
|000037c0| 32 2e 39 39 09 0d 53 71 | 75 61 72 65 20 52 6f 6f |2.99..Sq|uare Roo|
|000037d0| 74 20 28 45 78 61 63 74 | 29 09 31 38 2c 35 34 37 |t (Exact|).18,547|
|000037e0| 09 36 35 2c 39 33 34 09 | 33 2e 35 35 09 0d 53 71 |.65,934.|3.55..Sq|
|000037f0| 75 61 72 65 20 52 6f 6f | 74 20 28 49 6e 65 78 61 |uare Roo|t (Inexa|
|00003800| 63 74 29 09 31 38 2c 33 | 34 39 09 35 39 2c 31 31 |ct).18,3|49.59,11|
|00003810| 33 09 33 2e 32 32 09 0d | 43 6f 73 69 6e 65 09 39 |3.3.22..|Cosine.9|
|00003820| 30 32 09 37 2c 30 35 38 | 09 37 2e 38 32 09 0d 53 |02.7,058|.7.82..S|
|00003830| 69 6e 65 09 31 2c 32 39 | 30 09 38 2c 31 30 38 09 |ine.1,29|0.8,108.|
|00003840| 36 2e 32 39 09 0d 54 61 | 6e 67 65 6e 74 09 38 32 |6.29..Ta|ngent.82|
|00003850| 36 09 37 2c 31 38 35 09 | 38 2e 37 30 09 0d 4c 6f |6.7,185.|8.70..Lo|
|00003860| 67 61 72 69 74 68 6d 09 | 38 32 30 09 37 2c 36 34 |garithm.|820.7,64|
|00003870| 33 09 39 2e 33 32 09 0d | 45 78 70 6f 6e 65 6e 74 |3.9.32..|Exponent|
|00003880| 69 61 6c 09 37 32 33 09 | 37 2c 33 31 37 09 31 30 |ial.723.|7,317.10|
|00003890| 2e 31 32 09 0d 43 6f 6d | 70 6f 75 6e 64 09 34 31 |.12..Com|pound.41|
|000038a0| 33 09 33 2c 33 32 34 09 | 38 2e 30 35 09 0d 41 6e |3.3,324.|8.05..An|
|000038b0| 6e 75 69 74 79 09 33 35 | 38 09 33 2c 31 39 31 09 |nuity.35|8.3,191.|
|000038c0| 38 2e 39 31 09 0d 0d 50 | 69 74 66 61 6c 6c 73 0d |8.91...P|itfalls.|
|000038d0| bd 53 41 4e 45 20 61 63 | 68 69 65 76 65 73 20 6d |.SANE ac|hieves m|
|000038e0| 6f 73 74 20 6f 66 20 69 | 74 73 20 70 65 72 66 6f |ost of i|ts perfo|
|000038f0| 72 6d 61 6e 63 65 20 69 | 6d 70 72 6f 76 65 6d 65 |rmance i|mproveme|
|00003900| 6e 74 20 74 68 72 6f 75 | 67 68 20 75 73 65 20 6f |nt throu|gh use o|
|00003910| 66 20 61 20 74 65 63 68 | 6e 69 71 75 65 20 6b 6e |f a tech|nique kn|
|00003920| 6f 77 6e 20 61 73 20 d2 | 62 61 63 6b 70 61 74 63 |own as .|backpatc|
|00003930| 68 69 6e 67 2e d3 20 55 | 73 65 20 6f 66 20 62 61 |hing.. U|se of ba|
|00003940| 63 6b 70 61 74 63 68 69 | 6e 67 20 69 6e 74 72 6f |ckpatchi|ng intro|
|00003950| 64 75 63 65 73 20 61 20 | 6e 75 6d 62 65 72 20 6f |duces a |number o|
|00003960| 66 20 63 6f 6d 70 61 74 | 69 62 69 6c 69 74 79 20 |f compat|ibility |
|00003970| 69 6d 70 6c 69 63 61 74 | 69 6f 6e 73 2e 20 54 6f |implicat|ions. To|
|00003980| 20 69 6d 70 6c 65 6d 65 | 6e 74 20 62 61 63 6b 70 | impleme|nt backp|
|00003990| 61 74 63 68 69 6e 67 2c | 20 74 68 65 20 66 72 6f |atching,| the fro|
|000039a0| 6e 74 20 65 6e 64 20 6f | 66 20 74 6f 6f 6c 62 6f |nt end o|f toolbo|
|000039b0| 78 20 53 41 4e 45 20 68 | 61 73 20 62 65 65 6e 20 |x SANE h|as been |
|000039c0| 61 6c 74 65 72 65 64 20 | 74 6f 20 68 61 76 65 20 |altered |to have |
|000039d0| 6d 75 6c 74 69 70 6c 65 | 20 65 6e 74 72 79 20 70 |multiple| entry p|
|000039e0| 6f 69 6e 74 73 20 63 6f | 72 72 65 73 70 6f 6e 64 |oints co|rrespond|
|000039f0| 69 6e 67 20 74 6f 20 74 | 68 65 20 6d 6f 73 74 20 |ing to t|he most |
|00003a00| 69 6d 70 6f 72 74 61 6e | 74 20 6f 70 65 72 61 74 |importan|t operat|
|00003a10| 69 6f 6e 73 2c 20 61 6e | 64 20 79 6f 75 72 20 20 |ions, an|d your |
|00003a20| 52 41 4d 2d 62 61 73 65 | 64 20 61 70 70 6c 69 63 |RAM-base|d applic|
|00003a30| 61 74 69 6f 6e 20 63 6f | 64 65 20 69 73 20 6d 6f |ation co|de is mo|
|00003a40| 64 69 66 69 65 64 20 6f | 6e 20 74 68 65 20 66 6c |dified o|n the fl|
|00003a50| 79 20 72 65 70 6c 61 63 | 69 6e 67 20 74 72 61 70 |y replac|ing trap|
|00003a60| 73 20 77 69 74 68 20 73 | 70 65 65 64 69 65 72 20 |s with s|peedier |
|00003a70| 4a 53 52 73 20 74 6f 20 | 74 68 65 20 61 70 70 72 |JSRs to |the appr|
|00003a80| 6f 70 72 69 61 74 65 20 | 65 6e 74 72 79 20 70 6f |opriate |entry po|
|00003a90| 69 6e 74 2e 20 53 75 62 | 73 65 71 75 65 6e 74 20 |int. Sub|sequent |
|00003aa0| 65 78 65 63 75 74 69 6f | 6e 20 63 61 75 73 65 73 |executio|n causes|
|00003ab0| 20 74 68 65 20 63 6f 64 | 65 20 74 6f 20 62 79 70 | the cod|e to byp|
|00003ac0| 61 73 73 20 74 68 65 20 | 74 72 61 70 20 64 69 73 |ass the |trap dis|
|00003ad0| 70 61 74 63 68 65 72 20 | 61 6e 64 20 63 61 6c 6c |patcher |and call|
|00003ae0| 20 53 41 4e 45 20 64 69 | 72 65 63 74 6c 79 2e 20 | SANE di|rectly. |
|00003af0| 46 6f 72 20 65 78 61 6d | 70 6c 65 2c 20 61 6e 20 |For exam|ple, an |
|00003b00| 61 72 63 68 65 74 79 70 | 61 6c 20 53 41 4e 45 20 |archetyp|al SANE |
|00003b10| 70 61 63 6b 61 67 65 20 | 63 61 6c 6c 20 6c 6f 6f |package |call loo|
|00003b20| 6b 73 20 6c 69 6b 65 20 | 74 68 69 73 3a 0d 09 70 |ks like |this:..p|
|00003b30| 65 61 09 66 6f 6f 53 72 | 63 09 3b 20 50 75 73 68 |ea.fooSr|c.; Push|
|00003b40| 20 61 64 64 72 65 73 73 | 20 6f 66 20 74 68 65 20 | address| of the |
|00003b50| 73 6f 75 72 63 65 20 6f | 70 65 72 61 6e 64 0d 09 |source o|perand..|
|00003b60| 70 65 61 09 62 61 72 44 | 73 74 09 3b 20 50 75 73 |pea.barD|st.; Pus|
|00003b70| 68 20 74 68 65 20 61 64 | 64 72 65 73 73 20 6f 66 |h the ad|dress of|
|00003b80| 20 74 68 65 20 64 65 73 | 74 69 6e 61 74 69 6f 6e | the des|tination|
|00003b90| 20 6f 70 65 72 61 6e 64 | 0d 09 6d 6f 76 65 2e 77 | operand|..move.w|
|00003ba0| 09 23 4f 70 43 6f 64 65 | 2c 2d 28 73 70 29 09 3b |.#OpCode|,-(sp).;|
|00003bb0| 20 50 75 73 68 20 61 20 | 53 41 4e 45 20 6f 70 63 | Push a |SANE opc|
|00003bc0| 6f 64 65 20 77 6f 72 64 | 0d 09 5f 46 50 36 38 4b |ode word|.._FP68K|
|00003bd0| 09 09 3b 20 54 72 61 70 | 20 74 6f 20 53 41 4e 45 |..; Trap| to SANE|
|00003be0| 0d 4e 6f 74 69 63 65 20 | 74 68 61 74 20 74 68 65 |.Notice |that the|
|00003bf0| 20 6c 61 73 74 20 74 77 | 6f 20 69 6e 73 74 72 75 | last tw|o instru|
|00003c00| 63 74 69 6f 6e 73 20 6f | 63 63 75 70 79 20 74 68 |ctions o|ccupy th|
|00003c10| 72 65 65 20 77 6f 72 64 | 73 2c 20 6a 75 73 74 20 |ree word|s, just |
|00003c20| 65 6e 6f 75 67 68 20 66 | 6f 72 20 74 68 65 20 64 |enough f|or the d|
|00003c30| 65 73 69 72 65 64 20 4a | 53 52 2e 20 bd 53 41 4e |esired J|SR. .SAN|
|00003c40| 45 20 6d 6f 64 69 66 69 | 65 73 20 74 68 65 20 52 |E modifi|es the R|
|00003c50| 41 4d 2d 69 6d 61 67 65 | 20 6f 66 20 74 68 65 20 |AM-image| of the |
|00003c60| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 72 65 73 75 |applicat|ion resu|
|00003c70| 6c 74 69 6e 67 20 69 6e | 20 63 6f 64 65 20 6c 69 |lting in| code li|
|00003c80| 6b 65 20 74 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |ke the f|ollowing|
|00003c90| 3a 0d 09 70 65 61 09 66 | 6f 6f 53 72 63 09 09 3b |:..pea.f|ooSrc..;|
|00003ca0| 20 50 75 73 68 20 61 64 | 64 72 65 73 73 20 6f 66 | Push ad|dress of|
|00003cb0| 20 74 68 65 20 73 6f 75 | 72 63 65 20 6f 70 65 72 | the sou|rce oper|
|00003cc0| 61 6e 64 0d 09 70 65 61 | 09 62 61 72 44 73 74 09 |and..pea|.barDst.|
|00003cd0| 09 3b 20 50 75 73 68 20 | 74 68 65 20 61 64 64 72 |.; Push |the addr|
|00003ce0| 65 73 73 20 6f 66 20 74 | 68 65 20 64 65 73 74 2e |ess of t|he dest.|
|00003cf0| 20 6f 70 65 72 61 6e 64 | 0d 09 6a 73 72 09 d4 53 | operand|..jsr..S|
|00003d00| 41 4e 45 20 65 6e 74 72 | 79 20 70 6f 69 6e 74 d5 |ANE entr|y point.|
|00003d10| 09 09 3b 20 4a 53 52 20 | 74 6f 20 61 70 70 72 6f |..; JSR |to appro|
|00003d20| 70 72 69 61 74 65 20 53 | 41 4e 45 20 65 6e 74 72 |priate S|ANE entr|
|00003d30| 79 20 70 6f 69 6e 74 0d | 48 65 72 65 69 6e 20 6c |y point.|Herein l|
|00003d40| 69 65 73 20 61 20 70 6f | 74 65 6e 74 69 61 6c 20 |ies a po|tential |
|00003d50| 70 72 6f 62 6c 65 6d 2e | 20 54 68 65 72 65 20 69 |problem.| There i|
|00003d60| 73 20 6e 6f 74 68 69 6e | 67 20 74 6f 20 67 75 61 |s nothin|g to gua|
|00003d70| 72 61 6e 74 65 65 20 74 | 68 61 74 20 74 68 65 20 |rantee t|hat the |
|00003d80| 69 6e 73 74 72 75 63 74 | 69 6f 6e 20 69 6d 6d 65 |instruct|ion imme|
|00003d90| 64 69 61 74 65 6c 79 20 | 70 72 69 6f 72 20 74 6f |diately |prior to|
|00003da0| 20 74 68 65 20 5f 46 50 | 36 38 4b 20 74 72 61 70 | the _FP|68K trap|
|00003db0| 20 77 61 73 20 61 63 74 | 75 61 6c 6c 79 20 65 78 | was act|ually ex|
|00003dc0| 65 63 75 74 65 64 2e 20 | 41 20 70 72 6f 67 72 61 |ecuted. |A progra|
|00003dd0| 6d 20 63 6f 6e 74 72 6f | 6c 20 6f 70 65 72 61 74 |m contro|l operat|
|00003de0| 69 6f 6e 2c 20 73 75 63 | 68 20 61 73 20 61 20 42 |ion, suc|h as a B|
|00003df0| 52 41 2c 20 63 6f 75 6c | 64 20 68 61 76 65 20 63 |RA, coul|d have c|
|00003e00| 61 75 73 65 64 20 63 6f | 6e 74 72 6f 6c 20 74 6f |aused co|ntrol to|
|00003e10| 20 62 65 20 70 61 73 73 | 65 64 20 74 6f 20 74 68 | be pass|ed to th|
|00003e20| 65 20 5f 46 50 36 38 4b | 20 6f 70 65 72 61 74 69 |e _FP68K| operati|
|00003e30| 6f 6e 20 77 69 74 68 6f | 75 74 20 65 78 65 63 75 |on witho|ut execu|
|00003e40| 74 69 6e 67 20 74 68 65 | 20 70 72 65 63 65 64 69 |ting the| precedi|
|00003e50| 6e 67 20 6d 6f 76 65 2e | 77 2e 20 46 6f 72 20 69 |ng move.|w. For i|
|00003e60| 6e 73 74 61 6e 63 65 2c | 20 61 6e 20 65 78 65 63 |nstance,| an exec|
|00003e70| 75 74 69 6f 6e 20 73 65 | 71 75 65 6e 63 65 20 73 |ution se|quence s|
|00003e80| 75 63 68 20 61 73 20 74 | 68 65 20 66 6f 6c 6c 6f |uch as t|he follo|
|00003e90| 77 69 6e 67 3a 0d 09 70 | 65 61 09 73 75 62 53 72 |wing:..p|ea.subSr|
|00003ea0| 63 09 09 3b 20 50 75 73 | 68 20 73 6f 75 72 63 65 |c..; Pus|h source|
|00003eb0| 20 66 6f 72 20 73 75 62 | 74 72 61 63 74 0d 09 70 | for sub|tract..p|
|00003ec0| 65 61 09 73 75 62 44 73 | 74 09 09 3b 20 50 75 73 |ea.subDs|t..; Pus|
|00003ed0| 68 20 64 65 73 74 69 6e | 61 74 69 6f 6e 20 66 6f |h destin|ation fo|
|00003ee0| 72 20 73 75 62 74 72 61 | 63 74 0d 09 6d 6f 76 65 |r subtra|ct..move|
|00003ef0| 09 23 24 30 30 30 32 2c | 2d 28 73 70 29 09 09 3b |.#$0002,|-(sp)..;|
|00003f00| 20 50 75 73 68 20 73 75 | 62 74 72 61 63 74 20 65 | Push su|btract e|
|00003f10| 78 74 65 6e 64 65 64 20 | 6f 70 63 6f 64 65 20 77 |xtended |opcode w|
|00003f20| 6f 72 64 0d 09 62 72 61 | 09 40 31 09 09 3b 20 42 |ord..bra|.@1..; B|
|00003f30| 72 61 6e 63 68 20 74 6f | 20 5f 46 50 36 38 4b 20 |ranch to| _FP68K |
|00003f40| 74 72 61 70 0d 09 2e 0d | 09 2e 0d 09 2e 0d 09 70 |trap....|.......p|
|00003f50| 65 61 09 61 64 64 53 72 | 63 32 09 09 3b 20 50 75 |ea.addSr|c2..; Pu|
|00003f60| 73 68 20 73 6f 75 72 63 | 65 20 66 6f 72 20 61 64 |sh sourc|e for ad|
|00003f70| 64 0d 09 70 65 61 09 61 | 64 64 44 73 74 32 09 09 |d..pea.a|ddDst2..|
|00003f80| 3b 20 50 75 73 68 20 64 | 65 73 74 69 6e 61 74 69 |; Push d|estinati|
|00003f90| 6f 6e 20 66 6f 72 20 61 | 64 64 0d 09 6d 6f 76 65 |on for a|dd..move|
|00003fa0| 09 23 24 30 30 30 30 2c | 2d 28 73 70 29 09 09 3b |.#$0000,|-(sp)..;|
|00003fb0| 20 50 75 73 68 20 61 64 | 64 20 65 78 74 65 6e 64 | Push ad|d extend|
|00003fc0| 65 64 20 6f 70 63 6f 64 | 65 20 77 6f 72 64 0d 40 |ed opcod|e word.@|
|00003fd0| 31 09 5f 46 50 36 38 4b | 09 09 09 3b 20 54 72 61 |1._FP68K|...; Tra|
|00003fe0| 70 20 74 6f 20 53 41 4e | 45 0d 77 6f 75 6c 64 20 |p to SAN|E.would |
|00003ff0| 68 61 76 65 20 74 68 65 | 20 75 6e 73 65 65 6d 6c |have the| unseeml|
|00004000| 79 20 72 65 73 75 6c 74 | 20 6f 66 20 d2 62 61 63 |y result| of .bac|
|00004010| 6b 70 61 74 63 68 69 6e | 67 d3 20 61 20 4a 53 52 |kpatchin|g. a JSR|
|00004020| 20 74 6f 20 74 68 65 20 | 65 78 74 65 6e 64 65 64 | to the |extended|
|00004030| 20 61 64 64 20 65 6e 74 | 72 79 20 70 6f 69 6e 74 | add ent|ry point|
|00004040| 2c 20 61 6e 64 20 66 75 | 74 75 72 65 20 65 78 65 |, and fu|ture exe|
|00004050| 63 75 74 69 6f 6e 73 20 | 6f 66 20 74 68 65 20 73 |cutions |of the s|
|00004060| 75 62 74 72 61 63 74 69 | 6f 6e 20 63 6f 64 65 20 |ubtracti|on code |
|00004070| 77 6f 75 6c 64 20 62 72 | 61 6e 63 68 20 74 6f 20 |would br|anch to |
|00004080| 74 68 65 20 6d 69 64 64 | 6c 65 20 6f 66 20 61 20 |the midd|le of a |
|00004090| 4a 53 52 20 63 61 75 73 | 69 6e 67 20 61 6e 20 69 |JSR caus|ing an i|
|000040a0| 6c 6c 65 67 61 6c 20 69 | 6e 73 74 72 75 63 74 69 |llegal i|nstructi|
|000040b0| 6f 6e 20 65 72 72 6f 72 | 20 28 74 68 65 20 69 6c |on error| (the il|
|000040c0| 6c 65 67 61 6c 20 69 6e | 73 74 72 75 63 74 69 6f |legal in|structio|
|000040d0| 6e 20 65 72 72 6f 72 20 | 6d 69 67 68 74 20 6e 6f |n error |might no|
|000040e0| 74 20 6f 63 63 75 72 20 | 72 69 67 68 74 20 61 77 |t occur |right aw|
|000040f0| 61 79 29 2e 20 4e 6f 74 | 65 2c 20 68 6f 77 65 76 |ay). Not|e, howev|
|00004100| 65 72 2c 20 74 68 61 74 | 20 74 68 65 20 66 6f 6c |er, that| the fol|
|00004110| 6c 6f 77 69 6e 67 20 73 | 69 6d 69 6c 61 72 20 63 |lowing s|imilar c|
|00004120| 6f 64 65 20 73 65 71 75 | 65 6e 63 65 20 77 6f 72 |ode sequ|ence wor|
|00004130| 6b 73 20 63 6f 72 72 65 | 63 74 6c 79 20 69 6e 20 |ks corre|ctly in |
|00004140| 74 68 65 20 70 72 65 73 | 65 6e 63 65 20 6f 66 20 |the pres|ence of |
|00004150| 62 61 63 6b 70 61 74 63 | 68 69 6e 67 3a 0d 09 70 |backpatc|hing:..p|
|00004160| 65 61 09 61 64 64 53 72 | 63 09 09 3b 20 50 75 73 |ea.addSr|c..; Pus|
|00004170| 68 20 73 6f 75 72 63 65 | 20 66 6f 72 20 61 64 64 |h source| for add|
|00004180| 0d 09 70 65 61 09 61 64 | 64 44 73 74 09 09 3b 20 |..pea.ad|dDst..; |
|00004190| 50 75 73 68 20 64 65 73 | 74 69 6e 61 74 69 6f 6e |Push des|tination|
|000041a0| 20 66 6f 72 20 61 64 64 | 0d 09 62 72 61 09 40 31 | for add|..bra.@1|
|000041b0| 09 09 3b 20 42 72 61 6e | 63 68 20 74 6f 20 5f 46 |..; Bran|ch to _F|
|000041c0| 50 36 38 4b 20 74 72 61 | 70 0d 09 2e 0d 09 2e 0d |P68K tra|p.......|
|000041d0| 09 2e 0d 09 70 65 61 09 | 61 64 64 53 72 63 32 09 |....pea.|addSrc2.|
|000041e0| 09 3b 20 50 75 73 68 20 | 73 6f 75 72 63 65 20 66 |.; Push |source f|
|000041f0| 6f 72 20 61 64 64 0d 09 | 70 65 61 09 61 64 64 44 |or add..|pea.addD|
|00004200| 73 74 32 09 09 3b 20 50 | 75 73 68 20 64 65 73 74 |st2..; P|ush dest|
|00004210| 69 6e 61 74 69 6f 6e 20 | 66 6f 72 20 61 64 64 0d |ination |for add.|
|00004220| 40 31 09 6d 6f 76 65 09 | 23 24 30 30 30 30 2c 2d |@1.move.|#$0000,-|
|00004230| 28 73 70 29 09 09 3b 20 | 50 75 73 68 20 61 64 64 |(sp)..; |Push add|
|00004240| 20 65 78 74 65 6e 64 65 | 64 20 6f 70 63 6f 64 65 | extende|d opcode|
|00004250| 20 77 6f 72 64 0d 09 5f | 46 50 36 38 4b 09 09 09 | word.._|FP68K...|
|00004260| 3b 20 54 72 61 70 20 74 | 6f 20 53 41 4e 45 0d 54 |; Trap t|o SANE.T|
|00004270| 68 65 20 74 79 70 65 20 | 6f 66 20 63 6f 64 65 20 |he type |of code |
|00004280| 73 65 71 75 65 6e 63 65 | 20 74 68 61 74 20 69 73 |sequence| that is|
|00004290| 20 70 72 6f 62 6c 65 6d | 61 74 69 63 20 66 6f 72 | problem|atic for|
|000042a0| 20 62 61 63 6b 70 61 74 | 63 68 69 6e 67 20 28 61 | backpat|ching (a|
|000042b0| 73 20 61 62 6f 76 65 29 | 20 63 61 6e 6e 6f 74 20 |s above)| cannot |
|000042c0| 62 65 20 65 6d 69 74 74 | 65 64 20 62 79 20 74 68 |be emitt|ed by th|
|000042d0| 65 20 63 75 72 72 65 6e | 74 20 4d 50 57 20 43 20 |e curren|t MPW C |
|000042e0| 61 6e 64 20 50 61 73 63 | 61 6c 20 63 6f 6d 70 69 |and Pasc|al compi|
|000042f0| 6c 65 72 73 20 6f 72 20 | 62 79 20 63 75 72 72 65 |lers or |by curre|
|00004300| 6e 74 20 54 68 69 6e 6b | aa 20 63 6f 6d 70 69 6c |nt Think|. compil|
|00004310| 65 72 73 2e 20 49 74 20 | 61 6c 73 6f 20 63 61 6e |ers. It |also can|
|00004320| 6e 6f 74 20 6f 63 63 75 | 72 20 77 69 74 68 20 63 |not occu|r with c|
|00004330| 6f 64 65 20 67 65 6e 65 | 72 61 74 65 64 20 75 73 |ode gene|rated us|
|00004340| 69 6e 67 20 74 68 65 20 | 6d 61 63 72 6f 73 20 63 |ing the |macros c|
|00004350| 6f 6e 74 61 69 6e 65 64 | 20 69 6e 20 53 41 4e 45 |ontained| in SANE|
|00004360| 4d 61 63 73 2e 61 2e 20 | 0d 57 61 72 6e 69 6e 67 |Macs.a. |.Warning|
|00004370| 3a 09 41 6c 74 68 6f 75 | 67 68 20 74 68 65 20 63 |:.Althou|gh the c|
|00004380| 75 72 72 65 6e 74 20 67 | 65 6e 65 72 61 74 69 6f |urrent g|eneratio|
|00004390| 6e 20 6f 66 20 4d 50 57 | 20 63 6f 6d 70 69 6c 65 |n of MPW| compile|
|000043a0| 72 73 20 63 72 65 61 74 | 65 20 bd 53 41 4e 45 2d |rs creat|e .SANE-|
|000043b0| 73 61 66 65 20 63 6f 64 | 65 2c 20 74 68 65 20 65 |safe cod|e, the e|
|000043c0| 61 72 6c 69 65 72 2c 20 | 4d 50 57 20 43 20 32 2e |arlier, |MPW C 2.|
|000043d0| 30 2e 32 20 63 6f 6d 70 | 69 6c 65 72 20 6d 61 79 |0.2 comp|iler may|
|000043e0| 2c 20 75 6e 64 65 72 20 | 6c 69 6d 69 74 65 64 20 |, under |limited |
|000043f0| 63 69 72 63 75 6d 73 74 | 61 6e 63 65 73 2c 20 67 |circumst|ances, g|
|00004400| 65 6e 65 72 61 74 65 20 | 63 6f 64 65 20 74 68 61 |enerate |code tha|
|00004410| 74 20 68 61 73 20 70 72 | 6f 62 6c 65 6d 73 20 77 |t has pr|oblems w|
|00004420| 69 74 68 20 bd 53 41 4e | 45 2e 20 20 54 68 69 73 |ith .SAN|E. This|
|00004430| 20 69 73 20 64 69 73 63 | 75 73 73 65 64 20 69 6e | is disc|ussed in|
|00004440| 20 6d 6f 72 65 20 64 65 | 74 61 69 6c 20 62 65 6c | more de|tail bel|
|00004450| 6f 77 2e 0d 41 64 64 69 | 74 69 6f 6e 61 6c 6c 79 |ow..Addi|tionally|
|00004460| 2c 20 69 66 20 79 6f 75 | 20 68 61 76 65 20 68 61 |, if you| have ha|
|00004470| 6e 64 20 63 6f 64 65 64 | 20 61 73 73 65 6d 62 6c |nd coded| assembl|
|00004480| 79 20 6f 72 20 63 6f 64 | 65 20 77 68 69 63 68 20 |y or cod|e which |
|00004490| 68 61 73 20 62 65 65 6e | 20 6f 74 68 65 72 77 69 |has been| otherwi|
|000044a0| 73 65 20 6f 70 74 69 6d | 69 7a 65 64 20 74 6f 20 |se optim|ized to |
|000044b0| 75 73 65 20 63 6f 6d 6d | 6f 6e 20 5f 46 50 36 38 |use comm|on _FP68|
|000044c0| 4b 20 74 72 61 70 20 69 | 6e 73 74 72 75 63 74 69 |K trap i|nstructi|
|000044d0| 6f 6e 73 20 79 6f 75 20 | 6d 61 79 20 62 65 20 61 |ons you |may be a|
|000044e0| 74 20 72 69 73 6b 20 66 | 72 6f 6d 20 62 61 63 6b |t risk f|rom back|
|000044f0| 70 61 74 63 68 69 6e 67 | 2e 20 20 57 65 20 72 65 |patching|. We re|
|00004500| 63 6f 6d 6d 65 6e 64 20 | 79 6f 75 20 61 64 6a 75 |commend |you adju|
|00004510| 73 74 20 79 6f 75 72 20 | 63 6f 64 65 20 74 6f 20 |st your |code to |
|00004520| 63 6f 6e 66 6f 72 6d 20 | 74 6f 20 74 68 65 20 70 |conform |to the p|
|00004530| 72 6f 74 6f 74 79 70 69 | 63 61 6c 20 73 65 71 75 |rototypi|cal sequ|
|00004540| 65 6e 63 65 20 61 62 6f | 76 65 20 61 73 20 74 68 |ence abo|ve as th|
|00004550| 65 72 65 20 69 73 20 6e | 6f 20 70 65 72 66 6f 72 |ere is n|o perfor|
|00004560| 6d 61 6e 63 65 20 70 65 | 6e 61 6c 74 79 20 69 6e |mance pe|nalty in|
|00004570| 76 6f 6c 76 65 64 2e 0d | 41 6e 6f 74 68 65 72 20 |volved..|Another |
|00004580| 63 6f 6d 6d 6f 6e 20 70 | 72 6f 67 72 61 6d 6d 69 |common p|rogrammi|
|00004590| 6e 67 20 70 72 61 63 74 | 69 63 65 20 69 73 20 69 |ng pract|ice is i|
|000045a0| 6c 6c 75 73 74 72 61 74 | 65 64 20 69 6e 20 74 68 |llustrat|ed in th|
|000045b0| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 65 78 61 6d |e follow|ing exam|
|000045c0| 70 6c 65 3a 0d 09 6d 6f | 76 65 2e 77 09 23 24 30 |ple:..mo|ve.w.#$0|
|000045d0| 30 30 30 2c 44 30 09 3b | 20 4d 6f 76 65 20 65 78 |000,D0.;| Move ex|
|000045e0| 74 65 6e 64 65 64 20 61 | 64 64 20 6f 70 63 6f 64 |tended a|dd opcod|
|000045f0| 65 20 77 6f 72 64 20 74 | 6f 20 44 30 0d 09 62 72 |e word t|o D0..br|
|00004600| 61 09 40 31 09 09 3b 20 | 42 72 61 6e 63 68 20 74 |a.@1..; |Branch t|
|00004610| 6f 20 73 68 61 72 65 64 | 20 62 61 63 6b 65 6e 64 |o shared| backend|
|00004620| 20 66 6f 72 20 53 41 4e | 45 20 74 72 61 70 20 63 | for SAN|E trap c|
|00004630| 61 6c 6c 0d 09 2e 0d 09 | 2e 0d 09 2e 0d 09 6d 6f |all.....|......mo|
|00004640| 76 65 2e 77 09 23 24 30 | 30 30 32 2c 44 30 09 3b |ve.w.#$0|002,D0.;|
|00004650| 20 4d 6f 76 65 20 65 78 | 74 65 6e 64 65 64 20 73 | Move ex|tended s|
|00004660| 75 62 74 72 61 63 74 20 | 6f 70 63 6f 64 65 20 77 |ubtract |opcode w|
|00004670| 6f 72 64 20 74 6f 20 44 | 30 0d 09 62 72 61 09 40 |ord to D|0..bra.@|
|00004680| 31 09 09 3b 20 42 72 61 | 6e 63 68 20 74 6f 20 73 |1..; Bra|nch to s|
|00004690| 68 61 72 65 64 20 62 61 | 63 6b 65 6e 64 20 66 6f |hared ba|ckend fo|
|000046a0| 72 20 53 41 4e 45 20 74 | 72 61 70 20 63 61 6c 6c |r SANE t|rap call|
|000046b0| 0d 09 2e 0d 09 2e 0d 09 | 2e 0d 40 31 09 6d 6f 76 |........|..@1.mov|
|000046c0| 65 2e 77 09 44 30 2c 2d | 28 53 50 29 09 3b 20 50 |e.w.D0,-|(SP).; P|
|000046d0| 75 73 68 20 53 41 4e 45 | 20 6f 70 63 6f 64 65 20 |ush SANE| opcode |
|000046e0| 77 6f 72 64 20 6f 6e 20 | 73 74 61 63 6b 0d 09 5f |word on |stack.._|
|000046f0| 46 50 36 38 4b 09 09 09 | 3b 20 54 72 61 70 20 74 |FP68K...|; Trap t|
|00004700| 6f 20 53 41 4e 45 0d 54 | 68 69 73 20 63 6f 64 65 |o SANE.T|his code|
|00004710| 20 6f 70 65 72 61 74 65 | 73 20 63 6f 72 72 65 63 | operate|s correc|
|00004720| 74 6c 79 20 69 6e 20 74 | 68 65 20 70 72 65 73 65 |tly in t|he prese|
|00004730| 6e 63 65 20 6f 66 20 bd | 53 41 4e 45 2c 20 62 75 |nce of .|SANE, bu|
|00004740| 74 20 69 73 20 63 6c 65 | 61 72 6c 79 20 6e 6f 74 |t is cle|arly not|
|00004750| 20 62 61 63 6b 70 61 74 | 63 68 61 62 6c 65 2e 20 | backpat|chable. |
|00004760| 49 66 20 79 6f 75 20 68 | 61 76 65 20 63 6f 64 65 |If you h|ave code|
|00004770| 20 74 68 61 74 20 64 6f | 65 73 20 74 68 69 73 2c | that do|es this,|
|00004780| 20 79 6f 75 20 6d 69 67 | 68 74 20 63 6f 6e 73 69 | you mig|ht consi|
|00004790| 64 65 72 20 72 65 77 72 | 69 74 69 6e 67 20 69 74 |der rewr|iting it|
|000047a0| 20 74 6f 20 6f 62 74 61 | 69 6e 20 74 68 65 20 70 | to obta|in the p|
|000047b0| 65 72 66 6f 72 6d 61 6e | 63 65 20 69 6e 63 72 65 |erforman|ce incre|
|000047c0| 61 73 65 2c 20 62 75 74 | 20 74 68 65 20 63 6f 64 |ase, but| the cod|
|000047d0| 65 20 77 69 6c 6c 20 77 | 6f 72 6b 20 61 73 20 69 |e will w|ork as i|
|000047e0| 73 2e 0d 4d 50 57 20 43 | 20 32 2e 30 2e 32 0d 54 |s..MPW C| 2.0.2.T|
|000047f0| 68 65 20 4d 50 57 20 43 | 20 32 2e 30 2e 32 20 63 |he MPW C| 2.0.2 c|
|00004800| 6f 6d 70 69 6c 65 72 20 | 6d 61 79 2c 20 75 6e 64 |ompiler |may, und|
|00004810| 65 72 20 6c 69 6d 69 74 | 65 64 20 63 69 72 63 75 |er limit|ed circu|
|00004820| 6d 73 74 61 6e 63 65 73 | 2c 20 67 65 6e 65 72 61 |mstances|, genera|
|00004830| 74 65 20 63 6f 64 65 20 | 74 68 61 74 20 77 6f 72 |te code |that wor|
|00004840| 6b 73 20 69 6e 63 6f 72 | 72 65 63 74 6c 79 20 75 |ks incor|rectly u|
|00004850| 6e 64 65 72 20 bd 53 41 | 4e 45 2e 20 41 70 70 6c |nder .SA|NE. Appl|
|00004860| 65 20 72 65 63 6f 6d 6d | 65 6e 64 73 20 74 68 61 |e recomm|ends tha|
|00004870| 74 20 61 6c 6c 20 64 65 | 76 65 6c 6f 70 65 72 73 |t all de|velopers|
|00004880| 20 75 73 65 20 74 68 65 | 20 6c 61 74 65 73 74 20 | use the| latest |
|00004890| 64 65 76 65 6c 6f 70 6d | 65 6e 74 20 74 6f 6f 6c |developm|ent tool|
|000048a0| 73 2c 20 62 75 74 20 61 | 73 20 63 6f 6e 76 65 72 |s, but a|s conver|
|000048b0| 73 69 6f 6e 20 6f 66 20 | 73 6f 75 72 63 65 20 6d |sion of |source m|
|000048c0| 61 79 20 62 65 20 64 69 | 66 66 69 63 75 6c 74 20 |ay be di|fficult |
|000048d0| 61 6e 64 20 74 69 6d 65 | 20 63 6f 6e 73 75 6d 69 |and time| consumi|
|000048e0| 6e 67 20 69 6e 20 73 6f | 6d 65 20 63 61 73 65 73 |ng in so|me cases|
|000048f0| 2c 20 62 65 6c 6f 77 20 | 69 73 20 61 20 64 65 73 |, below |is a des|
|00004900| 63 72 69 70 74 69 6f 6e | 20 61 6e 64 20 77 6f 72 |cription| and wor|
|00004910| 6b 61 72 6f 75 6e 64 20 | 66 6f 72 20 74 68 65 20 |karound |for the |
|00004920| 70 72 6f 62 6c 65 6d 2e | 20 20 41 67 61 69 6e 2c |problem.| Again,|
|00004930| 20 74 68 69 73 20 6f 6e | 6c 79 20 61 66 66 65 63 | this on|ly affec|
|00004940| 74 73 20 63 6f 64 65 20 | 63 6f 6d 70 69 6c 65 64 |ts code |compiled|
|00004950| 20 77 69 74 68 6f 75 74 | 20 74 68 65 20 2d 6d 63 | without| the -mc|
|00004960| 36 38 38 38 31 20 6f 70 | 74 69 6f 6e 2e 0d 54 68 |68881 op|tion..Th|
|00004970| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 63 6f 64 65 |e follow|ing code|
|00004980| 20 64 65 6d 6f 6e 73 74 | 72 61 74 65 73 20 74 68 | demonst|rates th|
|00004990| 65 20 70 72 6f 62 6c 65 | 6d 0d 09 73 74 72 75 63 |e proble|m..struc|
|000049a0| 74 20 66 6f 6f 20 7b 0d | 09 09 64 6f 75 62 6c 65 |t foo {.|..double|
|000049b0| 20 64 61 74 61 3b 0d 09 | 09 66 6c 6f 61 74 20 6e | data;..|.float n|
|000049c0| 75 6d 3b 0d 09 7d 3b 0d | 09 66 6f 6f 62 61 72 28 |um;..};.|.foobar(|
|000049d0| 66 2c 62 29 0d 09 73 74 | 72 75 63 74 20 66 6f 6f |f,b)..st|ruct foo|
|000049e0| 20 2a 66 3b 0d 09 75 6e | 73 69 67 6e 65 64 20 63 | *f;..un|signed c|
|000049f0| 68 61 72 20 62 3b 0d 09 | 7b 0d 20 20 09 09 65 78 |har b;..|{. ..ex|
|00004a00| 74 65 6e 64 65 64 20 6e | 75 6d 3b 0d 20 20 09 09 |tended n|um;. ..|
|00004a10| 6e 75 6d 20 3d 20 33 2e | 31 34 31 35 39 3b 0d 20 |num = 3.|14159;. |
|00004a20| 09 20 09 69 66 20 28 62 | 29 0d 20 09 09 09 66 2d |. .if (b|). ...f-|
|00004a30| 3e 64 61 74 61 20 3d 20 | 6e 75 6d 3b 09 09 2f 2a |>data = |num;../*|
|00004a40| 20 46 50 20 6f 70 65 72 | 61 74 69 6f 6e 20 65 6e | FP oper|ation en|
|00004a50| 64 73 20 62 6c 6f 63 6b | 20 2a 2f 0d 20 09 20 09 |ds block| */. . .|
|00004a60| 65 6c 73 65 0d 09 20 20 | 09 09 66 2d 3e 6e 75 6d |else.. |..f->num|
|00004a70| 20 3d 20 6e 75 6d 3b 09 | 09 2f 2a 20 41 6e 6f 74 | = num;.|./* Anot|
|00004a80| 68 65 72 20 46 50 20 6f | 70 65 72 61 74 69 6f 6e |her FP o|peration|
|00004a90| 20 65 6e 64 73 20 62 6c | 6f 63 6b 20 2a 2f 0d 09 | ends bl|ock */..|
|00004aa0| 20 09 72 65 74 75 72 6e | 3b 0d 09 7d 0d 54 68 65 | .return|;..}.The|
|00004ab0| 20 63 72 69 74 69 63 61 | 6c 20 63 6f 6d 62 69 6e | critica|l combin|
|00004ac0| 61 74 69 6f 6e 20 6f 66 | 20 65 76 65 6e 74 73 20 |ation of| events |
|00004ad0| 6f 63 63 75 72 73 20 77 | 68 65 6e 20 6d 6f 72 65 |occurs w|hen more|
|00004ae0| 20 74 68 61 6e 20 6f 6e | 65 20 62 6c 6f 63 6b 20 | than on|e block |
|00004af0| 69 6e 20 61 6e 20 69 66 | 2d 65 6c 73 65 20 6f 72 |in an if|-else or|
|00004b00| 20 73 77 69 74 63 68 20 | 73 74 61 74 65 6d 65 6e | switch |statemen|
|00004b10| 74 73 20 65 6e 64 73 20 | 77 69 74 68 20 61 20 66 |ts ends |with a f|
|00004b20| 6c 6f 61 74 69 6e 67 2d | 70 6f 69 6e 74 20 6f 70 |loating-|point op|
|00004b30| 65 72 61 74 69 6f 6e 20 | 6f 72 20 63 6f 6e 76 65 |eration |or conve|
|00004b40| 72 73 69 6f 6e 2e 20 54 | 68 65 20 63 6f 6d 70 69 |rsion. T|he compi|
|00004b50| 6c 65 72 20 74 72 69 65 | 73 20 74 6f 20 6f 70 74 |ler trie|s to opt|
|00004b60| 69 6d 69 7a 65 20 74 68 | 65 20 66 69 6e 61 6c 20 |imize th|e final |
|00004b70| 66 6c 6f 61 74 69 6e 67 | 2d 70 6f 69 6e 74 20 6f |floating|-point o|
|00004b80| 70 65 72 61 74 69 6f 6e | 20 62 79 20 70 75 73 68 |peration| by push|
|00004b90| 69 6e 67 20 61 20 73 65 | 6c 65 63 74 6f 72 20 6f |ing a se|lector o|
|00004ba0| 6e 20 74 68 65 20 73 74 | 61 63 6b 20 74 68 65 6e |n the st|ack then|
|00004bb0| 20 62 72 61 6e 63 68 69 | 6e 67 20 74 6f 20 61 20 | branchi|ng to a |
|00004bc0| 63 6f 6d 6d 6f 6e 20 5f | 46 50 36 38 4b 20 74 72 |common _|FP68K tr|
|00004bd0| 61 70 2e 20 54 68 69 73 | 20 69 73 20 61 20 63 6c |ap. This| is a cl|
|00004be0| 61 73 73 69 63 20 65 78 | 61 6d 70 6c 65 20 6f 66 |assic ex|ample of|
|00004bf0| 20 63 6f 64 65 2c 20 6c | 69 6b 65 20 74 68 61 74 | code, l|ike that|
|00004c00| 20 63 69 74 65 64 20 61 | 62 6f 76 65 2c 20 74 68 | cited a|bove, th|
|00004c10| 61 74 20 77 6f 72 6b 73 | 20 69 6e 63 6f 72 72 65 |at works| incorre|
|00004c20| 63 74 6c 79 20 75 6e 64 | 65 72 20 bd 53 41 4e 45 |ctly und|er .SANE|
|00004c30| 2e 0d 54 68 65 20 77 6f | 72 6b 61 72 6f 75 6e 64 |..The wo|rkaround|
|00004c40| 20 69 73 20 74 6f 20 65 | 6c 69 6d 69 6e 61 74 65 | is to e|liminate|
|00004c50| 20 74 68 65 20 66 69 6e | 61 6c 20 66 6c 6f 61 74 | the fin|al float|
|00004c60| 69 6e 67 2d 70 6f 69 6e | 74 20 6f 70 65 72 61 74 |ing-poin|t operat|
|00004c70| 69 6f 6e 2e 20 48 65 72 | 65 20 69 73 20 6f 6e 65 |ion. Her|e is one|
|00004c80| 20 77 61 79 20 74 6f 20 | 64 6f 20 74 68 69 73 3a | way to |do this:|
|00004c90| 0d 09 66 6f 6f 62 61 72 | 28 66 2c 62 29 0d 09 73 |..foobar|(f,b)..s|
|00004ca0| 74 72 75 63 74 20 2a 66 | 3b 0d 09 75 6e 73 69 67 |truct *f|;..unsig|
|00004cb0| 6e 65 64 20 63 68 61 72 | 20 62 3b 0d 09 7b 0d 09 |ned char| b;..{..|
|00004cc0| 09 65 78 74 65 6e 64 65 | 64 20 6e 75 6d 3b 0d 09 |.extende|d num;..|
|00004cd0| 09 69 6e 74 20 69 64 75 | 6d 6d 79 3b 0d 09 09 6e |.int idu|mmy;...n|
|00004ce0| 75 6d 20 3d 20 33 2e 31 | 34 31 35 39 3b 0d 09 09 |um = 3.1|4159;...|
|00004cf0| 69 66 20 28 62 29 20 7b | 0d 09 09 09 66 2d 3e 64 |if (b) {|....f->d|
|00004d00| 61 74 61 20 3d 20 6e 75 | 6d 3b 0d 09 09 09 69 64 |ata = nu|m;....id|
|00004d10| 75 6d 6d 79 20 3d 20 31 | 3b 09 2f 2a 20 45 6e 64 |ummy = 1|;./* End|
|00004d20| 20 69 66 20 62 6c 6f 63 | 6b 20 77 69 74 68 20 61 | if bloc|k with a|
|00004d30| 20 6e 6f 6e 2d 46 50 20 | 6f 70 65 72 61 74 69 6f | non-FP |operatio|
|00004d40| 6e 20 2a 2f 0d 09 09 7d | 20 65 6c 73 65 20 7b 0d |n */...}| else {.|
|00004d50| 09 09 09 66 2d 3e 6e 75 | 6d 20 3d 20 6e 75 6d 3b |...f->nu|m = num;|
|00004d60| 0d 09 09 09 69 64 75 6d | 6d 79 20 3d 20 30 3b 09 |....idum|my = 0;.|
|00004d70| 2f 2a 20 45 6e 64 20 65 | 6c 73 65 20 62 6c 6f 63 |/* End e|lse bloc|
|00004d80| 6b 20 77 69 74 68 20 61 | 20 6e 6f 6e 2d 46 50 20 |k with a| non-FP |
|00004d90| 6f 70 65 72 61 74 69 6f | 6e 20 2a 2f 0d 09 09 7d |operatio|n */...}|
|00004da0| 0d 09 09 72 65 74 75 72 | 6e 3b 0d 09 7d 0d 49 6e |...retur|n;..}.In|
|00004db0| 20 74 68 69 73 20 63 61 | 73 65 2c 20 65 61 63 68 | this ca|se, each|
|00004dc0| 20 66 6c 6f 61 74 69 6e | 67 2d 70 6f 69 6e 74 20 | floatin|g-point |
|00004dd0| 6f 70 65 72 61 74 69 6f | 6e 20 67 65 74 73 20 69 |operatio|n gets i|
|00004de0| 74 73 20 6f 77 6e 20 5f | 46 50 36 38 4b 20 74 72 |ts own _|FP68K tr|
|00004df0| 61 70 20 73 6f 20 74 68 | 65 72 65 20 61 72 65 20 |ap so th|ere are |
|00004e00| 6e 6f 20 70 72 6f 62 6c | 65 6d 73 2e 0d 4f 74 68 |no probl|ems..Oth|
|00004e10| 65 72 20 50 69 74 66 61 | 6c 6c 73 0d 54 68 65 20 |er Pitfa|lls.The |
|00004e20| 62 61 63 6b 70 61 74 63 | 68 69 6e 67 20 70 65 72 |backpatc|hing per|
|00004e30| 66 6f 72 6d 65 64 20 62 | 79 20 bd 53 41 4e 45 20 |formed b|y .SANE |
|00004e40| 63 61 6e 20 68 61 76 65 | 20 6f 74 68 65 72 20 69 |can have| other i|
|00004e50| 6d 70 6c 69 63 61 74 69 | 6f 6e 73 20 66 6f 72 20 |mplicati|ons for |
|00004e60| 64 65 76 65 6c 6f 70 65 | 72 73 2e 20 46 6f 72 20 |develope|rs. For |
|00004e70| 65 78 61 6d 70 6c 65 2c | 20 61 70 70 6c 69 63 61 |example,| applica|
|00004e80| 74 69 6f 6e 73 20 74 68 | 61 74 20 63 68 65 63 6b |tions th|at check|
|00004e90| 73 75 6d 20 74 68 65 69 | 72 20 63 6f 64 65 20 73 |sum thei|r code s|
|00004ea0| 65 67 6d 65 6e 74 73 20 | 28 70 65 72 68 61 70 73 |egments |(perhaps|
|00004eb0| 20 74 6f 20 63 68 65 63 | 6b 20 66 6f 72 20 76 69 | to chec|k for vi|
|00004ec0| 72 75 73 65 73 29 20 77 | 69 6c 6c 20 64 65 74 65 |ruses) w|ill dete|
|00004ed0| 63 74 20 74 68 61 74 20 | 74 68 65 20 73 65 67 6d |ct that |the segm|
|00004ee0| 65 6e 74 20 68 61 73 20 | 62 65 65 6e 20 6d 6f 64 |ent has |been mod|
|00004ef0| 69 66 69 65 64 2e 20 53 | 75 63 68 20 61 70 70 6c |ified. S|uch appl|
|00004f00| 69 63 61 74 69 6f 6e 73 | 20 73 68 6f 75 6c 64 20 |ications| should |
|00004f10| 63 68 65 63 6b 73 75 6d | 20 73 65 67 6d 65 6e 74 |checksum| segment|
|00004f20| 73 20 6f 6e 6c 79 20 61 | 74 20 61 70 70 6c 69 63 |s only a|t applic|
|00004f30| 61 74 69 6f 6e 20 73 74 | 61 72 74 75 70 20 6f 72 |ation st|artup or|
|00004f40| 20 77 68 65 6e 20 74 68 | 65 20 73 65 67 6d 65 6e | when th|e segmen|
|00004f50| 74 73 20 61 72 65 20 6c | 6f 61 64 65 64 2c 20 6e |ts are l|oaded, n|
|00004f60| 6f 74 20 61 66 74 65 72 | 20 74 68 65 79 20 68 61 |ot after| they ha|
|00004f70| 76 65 20 62 65 65 6e 20 | 65 78 65 63 75 74 65 64 |ve been |executed|
|00004f80| 2e 0d 4c 69 6b 65 77 69 | 73 65 2c 20 61 6e 20 61 |..Likewi|se, an a|
|00004f90| 70 70 6c 69 63 61 74 69 | 6f 6e 20 6d 75 73 74 20 |pplicati|on must |
|00004fa0| 6e 6f 74 20 63 72 65 61 | 74 65 20 61 20 73 69 74 |not crea|te a sit|
|00004fb0| 75 61 74 69 6f 6e 20 77 | 68 69 63 68 20 77 69 6c |uation w|hich wil|
|00004fc0| 6c 20 63 61 75 73 65 20 | 74 68 65 20 52 65 73 6f |l cause |the Reso|
|00004fd0| 75 72 63 65 20 4d 61 6e | 61 67 65 72 20 74 6f 20 |urce Man|ager to |
|00004fe0| 77 72 69 74 65 20 61 20 | 63 6f 64 65 20 73 65 67 |write a |code seg|
|00004ff0| 6d 65 6e 74 20 6f 75 74 | 20 74 6f 20 64 69 73 6b |ment out| to disk|
|00005000| 20 61 66 74 65 72 20 69 | 74 20 68 61 73 20 62 65 | after i|t has be|
|00005010| 65 6e 20 65 78 65 63 75 | 74 65 64 2e 20 49 66 20 |en execu|ted. If |
|00005020| 73 75 63 68 20 61 20 73 | 65 67 6d 65 6e 74 20 62 |such a s|egment b|
|00005030| 65 65 6e 20 6d 6f 64 69 | 66 69 65 64 20 62 79 20 |een modi|fied by |
|00005040| bd 53 41 4e 45 2c 20 69 | 74 20 63 61 6e 20 66 61 |.SANE, i|t can fa|
|00005050| 69 6c 20 77 68 65 6e 20 | 73 75 62 73 65 71 75 65 |il when |subseque|
|00005060| 6e 74 6c 79 20 6c 6f 61 | 64 65 64 20 69 6e 74 6f |ntly loa|ded into|
|00005070| 20 6d 65 6d 6f 72 79 2e | 20 20 53 69 6e 63 65 20 | memory.| Since |
|00005080| 43 6c 6f 73 65 52 65 73 | 46 69 6c 65 20 69 73 20 |CloseRes|File is |
|00005090| 63 61 6c 6c 65 64 20 77 | 68 65 6e 20 74 68 65 20 |called w|hen the |
|000050a0| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 71 75 69 74 |applicat|ion quit|
|000050b0| 73 20 69 74 20 77 69 6c | 6c 20 61 75 74 6f 6d 61 |s it wil|l automa|
|000050c0| 74 69 63 61 6c 6c 79 20 | 77 72 69 74 65 20 6f 75 |tically |write ou|
|000050d0| 74 20 63 68 61 6e 67 65 | 64 20 72 65 73 6f 75 72 |t change|d resour|
|000050e0| 63 65 73 20 28 69 2e 65 | 2e 20 69 66 20 74 68 65 |ces (i.e|. if the|
|000050f0| 20 72 65 73 43 68 61 6e | 67 65 64 20 61 74 74 72 | resChan|ged attr|
|00005100| 69 62 75 74 65 20 69 73 | 20 74 72 75 65 29 20 77 |ibute is| true) w|
|00005110| 68 65 6e 20 63 6c 6f 73 | 69 6e 67 20 74 68 65 20 |hen clos|ing the |
|00005120| 66 69 6c 65 2e 0d 46 75 | 72 74 68 65 72 20 52 65 |file..Fu|rther Re|
|00005130| 66 65 72 65 6e 63 65 3a | 0d a5 09 41 70 70 6c 65 |ference:|...Apple|
|00005140| 20 4e 75 6d 65 72 69 63 | 73 20 4d 61 6e 75 61 6c | Numeric|s Manual|
|00005150| 2c 20 53 65 63 6f 6e 64 | 20 45 64 69 74 69 6f 6e |, Second| Edition|
|00005160| 0d 53 65 67 6d 65 6e 74 | 20 4c 6f 61 64 65 72 20 |.Segment| Loader |
|00005170| 4c 69 6d 69 74 61 74 69 | 6f 6e 73 0d 4f 70 65 72 |Limitati|ons.Oper|
|00005180| 61 74 69 6e 67 20 53 79 | 73 74 65 6d 09 4d 2e 4f |ating Sy|stem.M.O|
|00005190| 53 2e 53 65 67 6d 65 6e | 74 4c 6f 61 64 65 72 0d |S.Segmen|tLoader.|
|000051a0| 57 72 69 74 74 65 6e 20 | 62 79 3a 09 41 6e 64 72 |Written |by:.Andr|
|000051b0| 65 77 20 53 68 65 62 61 | 6e 6f 77 09 44 65 63 65 |ew Sheba|now.Dece|
|000051c0| 6d 62 65 72 20 31 39 38 | 38 0d 54 68 69 73 20 54 |mber 198|8.This T|
|000051d0| 65 63 68 6e 69 63 61 6c | 20 4e 6f 74 65 20 64 69 |echnical| Note di|
|000051e0| 73 63 75 73 73 65 73 20 | 74 68 65 20 6a 75 6d 70 |scusses |the jump|
|000051f0| 20 74 61 62 6c 65 20 6c | 69 6d 69 74 61 74 69 6f | table l|imitatio|
|00005200| 6e 73 20 6f 66 20 74 68 | 65 20 53 65 67 6d 65 6e |ns of th|e Segmen|
|00005210| 74 20 4c 6f 61 64 65 72 | 20 61 6e 64 20 73 75 67 |t Loader| and sug|
|00005220| 67 65 73 74 73 20 73 6f | 6d 65 20 77 61 79 73 20 |gests so|me ways |
|00005230| 74 6f 20 77 6f 72 6b 20 | 61 72 6f 75 6e 64 20 74 |to work |around t|
|00005240| 68 65 73 65 20 6c 69 6d | 69 74 61 74 69 6f 6e 73 |hese lim|itations|
|00005250| 20 74 6f 20 6d 69 6e 69 | 6d 69 7a 65 20 74 68 65 | to mini|mize the|
|00005260| 20 70 72 6f 62 6c 65 6d | 2e 20 20 54 68 65 73 65 | problem|. These|
|00005270| 20 6c 69 6d 69 74 61 74 | 69 6f 6e 73 20 61 72 65 | limitat|ions are|
|00005280| 20 6d 6f 73 74 20 65 76 | 69 64 65 6e 74 20 74 6f | most ev|ident to|
|00005290| 20 64 65 76 65 6c 6f 70 | 65 72 73 20 75 73 69 6e | develop|ers usin|
|000052a0| 67 20 4d 61 63 41 70 70 | 20 61 6e 64 20 6f 74 68 |g MacApp| and oth|
|000052b0| 65 72 20 6f 62 6a 65 63 | 74 2d 6f 72 69 65 6e 74 |er objec|t-orient|
|000052c0| 65 64 20 65 6e 76 69 72 | 6f 6e 6d 65 6e 74 73 2e |ed envir|onments.|
|000052d0| 0d 41 73 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |.As appl|ication |
|000052e0| 73 69 7a 65 73 20 69 6e | 63 72 65 61 73 65 2c 20 |sizes in|crease, |
|000052f0| 6d 6f 72 65 20 61 6e 64 | 20 6d 6f 72 65 20 64 65 |more and| more de|
|00005300| 76 65 6c 6f 70 65 72 73 | 20 61 72 65 20 68 69 74 |velopers| are hit|
|00005310| 74 69 6e 67 20 61 20 6c | 69 74 74 6c 65 20 6b 6e |ting a l|ittle kn|
|00005320| 6f 77 6e 20 6c 69 6d 69 | 74 20 69 6e 20 74 68 65 |own limi|t in the|
|00005330| 20 4d 61 63 69 6e 74 6f | 73 68 20 72 75 6e 2d 74 | Macinto|sh run-t|
|00005340| 69 6d 65 20 61 72 63 68 | 69 74 65 63 74 75 72 65 |ime arch|itecture|
|00005350| 3a 20 20 74 68 65 20 53 | 65 67 6d 65 6e 74 20 4c |: the S|egment L|
|00005360| 6f 61 64 65 72 d5 73 20 | 6c 69 6d 69 74 20 6f 6e |oader.s |limit on|
|00005370| 20 74 68 65 20 6e 75 6d | 62 65 72 20 6f 66 20 6a | the num|ber of j|
|00005380| 75 6d 70 20 74 61 62 6c | 65 20 65 6e 74 72 69 65 |ump tabl|e entrie|
|00005390| 73 2e 0d 54 68 65 20 53 | 65 67 6d 65 6e 74 20 4c |s..The S|egment L|
|000053a0| 6f 61 64 65 72 20 72 65 | 61 64 73 20 74 68 65 20 |oader re|ads the |
|000053b0| 6a 75 6d 70 20 74 61 62 | 6c 65 20 66 72 6f 6d 20 |jump tab|le from |
|000053c0| 27 43 4f 44 45 27 20 72 | 65 73 6f 75 72 63 65 20 |'CODE' r|esource |
|000053d0| 30 2e 20 20 54 68 69 73 | 20 72 65 73 6f 75 72 63 |0. This| resourc|
|000053e0| 65 20 68 61 73 20 74 68 | 65 20 66 6f 6c 6c 6f 77 |e has th|e follow|
|000053f0| 69 6e 67 20 66 6f 72 6d | 61 74 3a 0d 46 69 67 75 |ing form|at:.Figu|
|00005400| 72 65 20 31 d0 4a 75 6d | 70 20 54 61 62 6c 65 20 |re 1.Jum|p Table |
|00005410| 69 6e 20 27 43 4f 44 45 | 27 20 52 65 73 6f 75 72 |in 'CODE|' Resour|
|00005420| 63 65 20 30 0d 53 69 6e | 63 65 20 74 68 65 20 36 |ce 0.Sin|ce the 6|
|00005430| 38 30 30 30 20 75 73 65 | 73 20 73 69 67 6e 65 64 |8000 use|s signed|
|00005440| 20 31 36 2d 62 69 74 20 | 6f 66 66 73 65 74 73 20 | 16-bit |offsets |
|00005450| 66 6f 72 20 41 35 2d 72 | 65 6c 61 74 69 76 65 20 |for A5-r|elative |
|00005460| 69 6e 73 74 72 75 63 74 | 69 6f 6e 73 2c 20 74 68 |instruct|ions, th|
|00005470| 65 20 6d 61 78 69 6d 75 | 6d 20 6f 66 66 73 65 74 |e maximu|m offset|
|00005480| 20 74 68 61 74 20 63 61 | 6e 20 62 65 20 73 70 65 | that ca|n be spe|
|00005490| 63 69 66 69 65 64 20 69 | 73 20 33 32 37 36 37 2e |cified i|s 32767.|
|000054a0| 20 20 53 69 6e 63 65 20 | 65 61 63 68 20 6a 75 6d | Since |each jum|
|000054b0| 70 20 74 61 62 6c 65 20 | 65 6e 74 72 79 20 74 61 |p table |entry ta|
|000054c0| 6b 65 73 20 75 70 20 38 | 20 62 79 74 65 73 2c 20 |kes up 8| bytes, |
|000054d0| 74 68 65 72 65 20 63 61 | 6e 20 62 65 20 34 30 39 |there ca|n be 409|
|000054e0| 36 20 6a 75 6d 70 20 74 | 61 62 6c 65 20 65 6e 74 |6 jump t|able ent|
|000054f0| 72 69 65 73 2c 20 62 75 | 74 20 77 65 20 6e 65 65 |ries, bu|t we nee|
|00005500| 64 20 74 6f 20 73 75 62 | 74 72 61 63 74 20 74 68 |d to sub|tract th|
|00005510| 65 20 31 36 20 62 79 74 | 65 73 20 75 73 65 64 20 |e 16 byt|es used |
|00005520| 62 79 20 74 68 65 20 6a | 75 6d 70 20 74 61 62 6c |by the j|ump tabl|
|00005530| 65 20 68 65 61 64 65 72 | 2c 20 73 6f 20 74 68 65 |e header|, so the|
|00005540| 20 61 63 74 75 61 6c 20 | 6c 69 6d 69 74 20 6f 6e | actual |limit on|
|00005550| 20 6a 75 6d 70 20 74 61 | 62 6c 65 20 65 6e 74 72 | jump ta|ble entr|
|00005560| 69 65 73 20 69 73 20 34 | 30 39 34 2e 0d 54 68 69 |ies is 4|094..Thi|
|00005570| 73 20 6c 69 6d 69 74 20 | 6d 61 79 20 73 65 65 6d |s limit |may seem|
|00005580| 20 72 61 74 68 65 72 20 | 73 6d 61 6c 6c 2c 20 62 | rather |small, b|
|00005590| 75 74 20 79 6f 75 20 68 | 61 76 65 20 74 6f 20 72 |ut you h|ave to r|
|000055a0| 65 6d 65 6d 62 65 72 20 | 74 68 61 74 20 6a 75 6d |emember |that jum|
|000055b0| 70 20 74 61 62 6c 65 20 | 65 6e 74 72 69 65 73 20 |p table |entries |
|000055c0| 61 72 65 20 6f 6e 6c 79 | 20 6e 65 65 64 65 64 20 |are only| needed |
|000055d0| 69 66 20 61 20 66 75 6e | 63 74 69 6f 6e 20 69 73 |if a fun|ction is|
|000055e0| 20 63 61 6c 6c 65 64 20 | 66 72 6f 6d 20 6f 75 74 | called |from out|
|000055f0| 73 69 64 65 20 6f 66 20 | 69 74 73 20 6f 77 6e 20 |side of |its own |
|00005600| 73 65 67 6d 65 6e 74 20 | 28 61 2e 6b 2e 61 2e 20 |segment |(a.k.a. |
|00005610| 61 6e 20 69 6e 74 65 72 | 73 65 67 6d 65 6e 74 20 |an inter|segment |
|00005620| 66 75 6e 63 74 69 6f 6e | 20 63 61 6c 6c 29 2e 20 |function| call). |
|00005630| 20 46 6f 72 20 72 6f 75 | 74 69 6e 65 73 20 74 68 | For rou|tines th|
|00005640| 61 74 20 61 72 65 20 6c | 6f 63 61 6c 20 74 6f 20 |at are l|ocal to |
|00005650| 61 20 73 65 67 6d 65 6e | 74 20 28 69 6e 74 72 61 |a segmen|t (intra|
|00005660| 73 65 67 6d 65 6e 74 20 | 66 75 6e 63 74 69 6f 6e |segment |function|
|00005670| 20 63 61 6c 6c 73 29 2c | 20 74 68 65 20 6c 69 6e | calls),| the lin|
|00005680| 6b 65 72 20 63 61 6e 20 | 63 61 6c 6c 20 74 68 65 |ker can |call the|
|00005690| 20 72 6f 75 74 69 6e 65 | 20 77 69 74 68 6f 75 74 | routine| without|
|000056a0| 20 67 6f 69 6e 67 20 74 | 68 72 6f 75 67 68 20 74 | going t|hrough t|
|000056b0| 68 65 20 6a 75 6d 70 20 | 74 61 62 6c 65 2e 0d 49 |he jump |table..I|
|000056c0| 66 20 79 6f 75 20 61 72 | 65 20 64 65 76 65 6c 6f |f you ar|e develo|
|000056d0| 70 69 6e 67 20 61 20 6c | 61 72 67 65 20 70 72 6f |ping a l|arge pro|
|000056e0| 67 72 61 6d 2c 20 61 6e | 64 20 79 6f 75 20 74 68 |gram, an|d you th|
|000056f0| 69 6e 6b 20 79 6f 75 20 | 6d 69 67 68 74 20 62 65 |ink you |might be|
|00005700| 20 69 6e 20 64 61 6e 67 | 65 72 20 6f 66 20 72 75 | in dang|er of ru|
|00005710| 6e 6e 69 6e 67 20 6f 75 | 74 20 6f 66 20 6a 75 6d |nning ou|t of jum|
|00005720| 70 20 74 61 62 6c 65 20 | 73 70 61 63 65 2c 20 68 |p table |space, h|
|00005730| 65 72 65 20 61 72 65 20 | 73 6f 6d 65 20 67 75 69 |ere are |some gui|
|00005740| 64 65 6c 69 6e 65 73 20 | 79 6f 75 20 63 61 6e 20 |delines |you can |
|00005750| 75 73 65 20 77 68 65 6e | 20 64 65 73 69 67 6e 69 |use when| designi|
|00005760| 6e 67 20 61 6e 64 20 6f | 72 67 61 6e 69 7a 69 6e |ng and o|rganizin|
|00005770| 67 20 79 6f 75 72 20 63 | 6f 64 65 3a 0d a5 20 53 |g your c|ode:.. S|
|00005780| 65 67 6d 65 6e 74 20 79 | 6f 75 72 20 73 6f 75 72 |egment y|our sour|
|00005790| 63 65 20 63 6f 64 65 20 | 62 61 73 65 64 20 6f 6e |ce code |based on|
|000057a0| 20 79 6f 75 72 20 72 75 | 6e 2d 74 69 6d 65 20 63 | your ru|n-time c|
|000057b0| 61 6c 6c 20 63 68 61 69 | 6e 2c 20 72 61 74 68 65 |all chai|n, rathe|
|000057c0| 72 20 74 68 61 6e 20 6f | 6e 20 61 20 73 69 6d 70 |r than o|n a simp|
|000057d0| 6c 65 20 66 69 6c 65 2d | 62 79 2d 66 69 6c 65 20 |le file-|by-file |
|000057e0| 62 61 73 69 73 2e 0d a5 | 20 4b 65 65 70 20 75 74 |basis...| Keep ut|
|000057f0| 69 6c 69 74 79 20 72 6f | 75 74 69 6e 65 73 20 69 |ility ro|utines i|
|00005800| 6e 20 74 68 65 20 73 61 | 6d 65 20 73 65 67 6d 65 |n the sa|me segme|
|00005810| 6e 74 20 61 73 20 74 68 | 65 20 72 6f 75 74 69 6e |nt as th|e routin|
|00005820| 65 73 20 77 68 69 63 68 | 20 63 61 6c 6c 20 74 68 |es which| call th|
|00005830| 65 6d 2c 20 72 61 74 68 | 65 72 20 74 68 61 6e 20 |em, rath|er than |
|00005840| 6b 65 65 70 69 6e 67 20 | 74 68 65 6d 20 69 6e 20 |keeping |them in |
|00005850| 61 20 73 65 70 61 72 61 | 74 65 20 d2 55 74 69 6c |a separa|te .Util|
|00005860| 69 74 69 65 73 d3 20 73 | 65 67 6d 65 6e 74 2e 0d |ities. s|egment..|
|00005870| a5 20 54 72 79 20 74 6f | 20 6b 65 65 70 20 79 6f |. Try to| keep yo|
|00005880| 75 72 20 73 65 67 6d 65 | 6e 74 73 20 63 6c 6f 73 |ur segme|nts clos|
|00005890| 65 20 74 6f 20 74 68 65 | 20 6d 61 78 69 6d 75 6d |e to the| maximum|
|000058a0| 20 73 69 7a 65 2e 20 20 | 54 68 65 20 66 65 77 65 | size. |The fewe|
|000058b0| 72 20 73 65 67 6d 65 6e | 74 73 20 79 6f 75 20 68 |r segmen|ts you h|
|000058c0| 61 76 65 2c 20 74 68 65 | 20 66 65 77 65 72 20 69 |ave, the| fewer i|
|000058d0| 6e 74 65 72 73 65 67 6d | 65 6e 74 20 72 65 66 65 |ntersegm|ent refe|
|000058e0| 72 65 6e 63 65 73 20 79 | 6f 75 20 77 69 6c 6c 20 |rences y|ou will |
|000058f0| 68 61 76 65 2e 0d 54 68 | 65 20 34 30 39 34 20 72 |have..Th|e 4094 r|
|00005900| 6f 75 74 69 6e 65 20 6c | 69 6d 69 74 20 62 65 63 |outine l|imit bec|
|00005910| 6f 6d 65 73 20 61 20 6d | 75 63 68 20 6d 6f 72 65 |omes a m|uch more|
|00005920| 20 73 69 67 6e 69 66 69 | 63 61 6e 74 20 70 72 6f | signifi|cant pro|
|00005930| 62 6c 65 6d 20 77 68 65 | 6e 20 79 6f 75 20 73 74 |blem whe|n you st|
|00005940| 61 72 74 20 77 6f 72 6b | 69 6e 67 20 77 69 74 68 |art work|ing with|
|00005950| 20 4d 61 63 41 70 70 20 | 61 6e 64 20 4f 62 6a 65 | MacApp |and Obje|
|00005960| 63 74 20 50 61 73 63 61 | 6c 2e 20 20 49 66 20 79 |ct Pasca|l. If y|
|00005970| 6f 75 20 63 6f 6d 70 69 | 6c 65 20 79 6f 75 72 20 |ou compi|le your |
|00005980| 4d 61 63 41 70 70 20 70 | 72 6f 67 72 61 6d 20 77 |MacApp p|rogram w|
|00005990| 69 74 68 20 64 65 62 75 | 67 67 69 6e 67 20 74 75 |ith debu|gging tu|
|000059a0| 72 6e 65 64 20 6f 6e 2c | 20 79 6f 75 20 77 69 6c |rned on,| you wil|
|000059b0| 6c 20 67 65 74 20 61 20 | 6a 75 6d 70 20 74 61 62 |l get a |jump tab|
|000059c0| 6c 65 20 65 6e 74 72 79 | 20 66 6f 72 20 65 76 65 |le entry| for eve|
|000059d0| 72 79 20 6d 65 74 68 6f | 64 20 69 6e 20 79 6f 75 |ry metho|d in you|
|000059e0| 72 20 70 72 6f 67 72 61 | 6d 2e 20 20 41 6c 6c 20 |r progra|m. All |
|000059f0| 6f 66 20 61 20 73 75 64 | 64 65 6e 2c 20 61 6e 20 |of a sud|den, an |
|00005a00| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 6f 66 20 6d |applicat|ion of m|
|00005a10| 65 64 69 75 6d 20 73 69 | 7a 65 20 63 61 6e 20 68 |edium si|ze can h|
|00005a20| 61 76 65 20 6a 75 6d 70 | 20 74 61 62 6c 65 20 70 |ave jump| table p|
|00005a30| 72 6f 62 6c 65 6d 73 2e | 20 20 57 6f 72 6b 69 6e |roblems.| Workin|
|00005a40| 67 20 61 72 6f 75 6e 64 | 20 74 68 69 73 20 70 72 |g around| this pr|
|00005a50| 6f 62 6c 65 6d 20 69 73 | 20 65 78 74 72 65 6d 65 |oblem is| extreme|
|00005a60| 6c 79 20 64 69 66 66 69 | 63 75 6c 74 2c 20 73 69 |ly diffi|cult, si|
|00005a70| 6e 63 65 20 74 68 65 20 | 6f 6e 6c 79 20 6f 70 74 |nce the |only opt|
|00005a80| 69 6f 6e 73 20 61 76 61 | 69 6c 61 62 6c 65 20 74 |ions ava|ilable t|
|00005a90| 6f 20 79 6f 75 20 61 72 | 65 3a 0d a5 20 47 69 76 |o you ar|e:.. Giv|
|00005aa0| 69 6e 67 20 75 70 20 74 | 68 65 20 4d 61 63 41 70 |ing up t|he MacAp|
|00005ab0| 70 20 64 65 62 75 67 67 | 65 72 20 66 61 63 69 6c |p debugg|er facil|
|00005ac0| 69 74 69 65 73 2c 20 61 | 6e 64 20 75 73 69 6e 67 |ities, a|nd using|
|00005ad0| 20 79 6f 75 72 20 66 61 | 76 6f 72 69 74 65 20 6c | your fa|vorite l|
|00005ae0| 6f 77 2d 6c 65 76 65 6c | 20 64 65 62 75 67 67 65 |ow-level| debugge|
|00005af0| 72 20 69 6e 73 74 65 61 | 64 2e 0d a5 20 52 65 6f |r instea|d... Reo|
|00005b00| 72 67 61 6e 69 7a 69 6e | 67 20 79 6f 75 72 20 63 |rganizin|g your c|
|00005b10| 6c 61 73 73 65 73 2c 20 | 61 6e 64 20 72 65 64 75 |lasses, |and redu|
|00005b20| 63 69 6e 67 20 74 68 65 | 20 6e 75 6d 62 65 72 20 |cing the| number |
|00005b30| 6f 66 20 6d 65 74 68 6f | 64 73 20 69 6e 20 79 6f |of metho|ds in yo|
|00005b40| 75 72 20 70 72 6f 67 72 | 61 6d 20 74 6f 20 61 20 |ur progr|am to a |
|00005b50| 72 65 61 73 6f 6e 61 62 | 6c 65 20 6c 65 76 65 6c |reasonab|le level|
|00005b60| 2e 20 20 54 68 69 73 20 | 6d 65 61 6e 73 20 74 68 |. This |means th|
|00005b70| 61 74 20 79 6f 75 20 6d | 61 79 20 68 61 76 65 20 |at you m|ay have |
|00005b80| 74 6f 20 6d 61 6b 65 20 | 6d 61 6a 6f 72 20 73 6f |to make |major so|
|00005b90| 75 72 63 65 20 63 6f 64 | 65 20 63 68 61 6e 67 65 |urce cod|e change|
|00005ba0| 73 2c 20 61 6e 64 20 79 | 6f 75 20 65 6e 64 20 75 |s, and y|ou end u|
|00005bb0| 70 20 77 69 74 68 20 61 | 20 6c 65 73 73 20 d2 6f |p with a| less .o|
|00005bc0| 62 6a 65 63 74 2d 6f 72 | 69 65 6e 74 65 64 d3 20 |bject-or|iented. |
|00005bd0| 70 72 6f 67 72 61 6d 20 | 74 68 61 6e 20 79 6f 75 |program |than you|
|00005be0| 20 73 74 61 72 74 65 64 | 20 6f 75 74 20 77 69 74 | started| out wit|
|00005bf0| 68 2e 0d 42 6f 74 68 20 | 6f 66 20 74 68 65 73 65 |h..Both |of these|
|00005c00| 20 6f 70 74 69 6f 6e 73 | 20 61 72 65 20 65 78 74 | options| are ext|
|00005c10| 72 65 6d 65 6c 79 20 64 | 69 73 74 61 73 74 65 66 |remely d|istastef|
|00005c20| 75 6c 2c 20 62 75 74 20 | 74 68 65 20 66 69 6e 61 |ul, but |the fina|
|00005c30| 6c 20 76 65 72 73 69 6f | 6e 20 6f 66 20 4d 61 63 |l versio|n of Mac|
|00005c40| 41 70 70 20 32 2e 30 20 | 77 69 6c 6c 20 61 6c 6c |App 2.0 |will all|
|00005c50| 65 76 69 61 74 65 20 74 | 68 65 20 70 72 6f 62 6c |eviate t|he probl|
|00005c60| 65 6d 20 62 79 20 6c 65 | 74 74 69 6e 67 20 79 6f |em by le|tting yo|
|00005c70| 75 20 63 6f 6d 70 69 6c | 65 20 79 6f 75 72 20 70 |u compil|e your p|
|00005c80| 72 6f 67 72 61 6d 73 20 | 77 69 74 68 20 62 6f 74 |rograms |with bot|
|00005c90| 68 20 64 65 62 75 67 67 | 69 6e 67 20 61 6e 64 20 |h debugg|ing and |
|00005ca0| 6f 70 74 69 6d 69 7a 61 | 74 69 6f 6e 20 74 75 72 |optimiza|tion tur|
|00005cb0| 6e 65 64 20 6f 6e 2e 20 | 20 54 68 65 20 6f 70 74 |ned on. | The opt|
|00005cc0| 69 6d 69 7a 65 72 20 77 | 69 6c 6c 20 64 72 61 73 |imizer w|ill dras|
|00005cd0| 74 69 63 61 6c 6c 79 20 | 72 65 64 75 63 65 20 74 |tically |reduce t|
|00005ce0| 68 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 6a 75 6d |he numbe|r of jum|
|00005cf0| 70 20 74 61 62 6c 65 20 | 65 6e 74 72 69 65 73 2c |p table |entries,|
|00005d00| 20 73 6f 20 74 68 65 20 | 70 72 6f 62 6c 65 6d 20 | so the |problem |
|00005d10| 73 68 6f 75 6c 64 20 6f | 6e 6c 79 20 6f 63 63 75 |should o|nly occu|
|00005d20| 72 20 77 69 74 68 20 76 | 65 72 79 20 6c 61 72 67 |r with v|ery larg|
|00005d30| 65 20 70 72 6f 67 72 61 | 6d 73 2e 0d 53 74 61 72 |e progra|ms..Star|
|00005d40| 74 20 4d 61 6e 61 67 65 | 72 20 51 26 41 73 0d 4f |t Manage|r Q&As.O|
|00005d50| 70 65 72 61 74 69 6e 67 | 20 53 79 73 74 65 6d 20 |perating| System |
|00005d60| 55 74 69 6c 69 74 69 65 | 73 09 4d 2e 4f 55 2e 53 |Utilitie|s.M.OU.S|
|00005d70| 74 61 72 74 4d 67 72 2e | 51 26 41 73 0d 52 65 76 |tartMgr.|Q&As.Rev|
|00005d80| 69 73 65 64 20 62 79 3a | 09 44 65 76 65 6c 6f 70 |ised by:|.Develop|
|00005d90| 65 72 20 53 75 70 70 6f | 72 74 20 43 65 6e 74 65 |er Suppo|rt Cente|
|00005da0| 72 09 4f 63 74 6f 62 65 | 72 20 31 39 39 32 0d 57 |r.Octobe|r 1992.W|
|00005db0| 72 69 74 74 65 6e 20 62 | 79 3a 09 44 65 76 65 6c |ritten b|y:.Devel|
|00005dc0| 6f 70 65 72 20 53 75 70 | 70 6f 72 74 20 43 65 6e |oper Sup|port Cen|
|00005dd0| 74 65 72 09 4f 63 74 6f | 62 65 72 20 31 39 39 30 |ter.Octo|ber 1990|
|00005de0| 0d 54 68 69 73 20 54 65 | 63 68 6e 69 63 61 6c 20 |.This Te|chnical |
|00005df0| 4e 6f 74 65 20 63 6f 6e | 74 61 69 6e 73 20 61 20 |Note con|tains a |
|00005e00| 63 6f 6c 6c 65 63 74 69 | 6f 6e 20 6f 66 20 51 26 |collecti|on of Q&|
|00005e10| 41 73 20 72 65 6c 61 74 | 69 6e 67 20 74 6f 20 61 |As relat|ing to a|
|00005e20| 20 73 70 65 63 69 66 69 | 63 20 74 6f 70 69 63 d1 | specifi|c topic.|
|00005e30| 71 75 65 73 74 69 6f 6e | 73 20 79 6f 75 d5 76 65 |question|s you.ve|
|00005e40| 20 73 65 6e 74 20 74 68 | 65 20 44 65 76 65 6c 6f | sent th|e Develo|
|00005e50| 70 65 72 20 53 75 70 70 | 6f 72 74 20 43 65 6e 74 |per Supp|ort Cent|
|00005e60| 65 72 20 28 44 53 43 29 | 20 61 6c 6f 6e 67 20 77 |er (DSC)| along w|
|00005e70| 69 74 68 20 61 6e 73 77 | 65 72 73 20 66 72 6f 6d |ith answ|ers from|
|00005e80| 20 74 68 65 20 44 53 43 | 20 65 6e 67 69 6e 65 65 | the DSC| enginee|
|00005e90| 72 73 2e 20 57 68 69 6c | 65 20 44 53 43 20 65 6e |rs. Whil|e DSC en|
|00005ea0| 67 69 6e 65 65 72 73 20 | 68 61 76 65 20 63 68 65 |gineers |have che|
|00005eb0| 63 6b 65 64 20 74 68 65 | 20 51 26 41 20 63 6f 6e |cked the| Q&A con|
|00005ec0| 74 65 6e 74 20 66 6f 72 | 20 61 63 63 75 72 61 63 |tent for| accurac|
|00005ed0| 79 2c 20 74 68 65 20 51 | 26 41 20 54 65 63 68 6e |y, the Q|&A Techn|
|00005ee0| 69 63 61 6c 20 4e 6f 74 | 65 73 20 64 6f 6e d5 74 |ical Not|es don.t|
|00005ef0| 20 68 61 76 65 20 74 68 | 65 20 65 64 69 74 69 6e | have th|e editin|
|00005f00| 67 20 61 6e 64 20 6f 72 | 67 61 6e 69 7a 61 74 69 |g and or|ganizati|
|00005f10| 6f 6e 20 6f 66 20 6f 74 | 68 65 72 20 54 65 63 68 |on of ot|her Tech|
|00005f20| 6e 69 63 61 6c 20 4e 6f | 74 65 73 2e 20 54 68 65 |nical No|tes. The|
|00005f30| 20 51 26 41 20 66 75 6e | 63 74 69 6f 6e 20 69 73 | Q&A fun|ction is|
|00005f40| 20 74 6f 20 67 65 74 20 | 6e 65 77 20 74 65 63 68 | to get |new tech|
|00005f50| 6e 69 63 61 6c 20 69 6e | 66 6f 72 6d 61 74 69 6f |nical in|formatio|
|00005f60| 6e 20 61 6e 64 20 75 70 | 64 61 74 65 73 20 74 6f |n and up|dates to|
|00005f70| 20 79 6f 75 20 71 75 69 | 63 6b 6c 79 2c 20 73 61 | you qui|ckly, sa|
|00005f80| 76 69 6e 67 20 74 68 65 | 20 70 6f 6c 69 73 68 20 |ving the| polish |
|00005f90| 66 6f 72 20 77 68 65 6e | 20 74 68 65 20 69 6e 66 |for when| the inf|
|00005fa0| 6f 72 6d 61 74 69 6f 6e | 20 6d 69 67 72 61 74 65 |ormation| migrate|
|00005fb0| 73 20 69 6e 74 6f 20 72 | 65 66 65 72 65 6e 63 65 |s into r|eference|
|00005fc0| 20 6d 61 6e 75 61 6c 73 | 2e 0d 51 26 41 73 20 61 | manuals|..Q&As a|
|00005fd0| 72 65 20 6e 6f 77 20 69 | 6e 63 6c 75 64 65 64 20 |re now i|ncluded |
|00005fe0| 77 69 74 68 20 54 65 63 | 68 6e 69 63 61 6c 20 4e |with Tec|hnical N|
|00005ff0| 6f 74 65 73 20 74 6f 20 | 6d 61 6b 65 20 61 63 63 |otes to |make acc|
|00006000| 65 73 73 20 74 6f 20 74 | 65 63 68 6e 69 63 61 6c |ess to t|echnical|
|00006010| 20 75 70 64 61 74 65 73 | 20 65 61 73 69 65 72 20 | updates| easier |
|00006020| 66 6f 72 20 79 6f 75 2e | 20 49 66 20 79 6f 75 20 |for you.| If you |
|00006030| 68 61 76 65 20 63 6f 6d | 6d 65 6e 74 73 20 6f 72 |have com|ments or|
|00006040| 20 73 75 67 67 65 73 74 | 69 6f 6e 73 20 61 62 6f | suggest|ions abo|
|00006050| 75 74 20 51 26 41 20 63 | 6f 6e 74 65 6e 74 20 6f |ut Q&A c|ontent o|
|00006060| 72 20 64 69 73 74 72 69 | 62 75 74 69 6f 6e 2c 20 |r distri|bution, |
|00006070| 70 6c 65 61 73 65 20 6c | 65 74 20 75 73 20 6b 6e |please l|et us kn|
|00006080| 6f 77 20 62 79 20 73 65 | 6e 64 69 6e 67 20 61 6e |ow by se|nding an|
|00006090| 20 41 70 70 6c 65 4c 69 | 6e 6b 20 74 6f 20 44 45 | AppleLi|nk to DE|
|000060a0| 56 46 45 45 44 42 41 43 | 4b 2e 20 41 70 70 6c 65 |VFEEDBAC|K. Apple|
|000060b0| 20 50 61 72 74 6e 65 72 | 73 20 6d 61 79 20 73 65 | Partner|s may se|
|000060c0| 6e 64 20 74 65 63 68 6e | 69 63 61 6c 20 71 75 65 |nd techn|ical que|
|000060d0| 73 74 69 6f 6e 73 20 61 | 62 6f 75 74 20 51 26 41 |stions a|bout Q&A|
|000060e0| 20 63 6f 6e 74 65 6e 74 | 20 74 6f 20 44 45 56 53 | content| to DEVS|
|000060f0| 55 50 50 4f 52 54 20 66 | 6f 72 20 72 65 73 6f 6c |UPPORT f|or resol|
|00006100| 75 74 69 6f 6e 2e 0d 4e | 65 77 20 51 26 41 73 20 |ution..N|ew Q&As |
|00006110| 61 6e 64 20 51 26 41 73 | 20 72 65 76 69 73 65 64 |and Q&As| revised|
|00006120| 20 74 68 69 73 20 6d 6f | 6e 74 68 20 61 72 65 20 | this mo|nth are |
|00006130| 6d 61 72 6b 65 64 20 77 | 69 74 68 20 61 20 62 61 |marked w|ith a ba|
|00006140| 72 20 69 6e 20 74 68 65 | 20 73 69 64 65 20 6d 61 |r in the| side ma|
|00006150| 72 67 69 6e 2e 0d 53 65 | 74 54 69 6d 65 6f 75 74 |rgin..Se|tTimeout|
|00006160| 20 72 65 66 65 72 73 20 | 74 6f 20 64 65 76 69 63 | refers |to devic|
|00006170| 65 20 73 70 65 63 69 66 | 69 65 64 20 62 79 20 53 |e specif|ied by S|
|00006180| 65 74 44 65 66 61 75 6c | 74 53 74 61 72 74 75 70 |etDefaul|tStartup|
|00006190| 0d 57 72 69 74 74 65 6e | 3a 09 34 2f 32 2f 39 31 |.Written|:.4/2/91|
|000061a0| 0d 4c 61 73 74 20 72 65 | 76 69 65 77 65 64 3a 09 |.Last re|viewed:.|
|000061b0| 36 2f 32 34 2f 39 31 0d | 53 65 74 54 69 6d 65 6f |6/24/91.|SetTimeo|
|000061c0| 75 74 20 6c 65 74 73 20 | 79 6f 75 20 73 70 65 63 |ut lets |you spec|
|000061d0| 69 66 79 20 74 68 65 20 | 6e 75 6d 62 65 72 20 6f |ify the |number o|
|000061e0| 66 20 73 65 63 6f 6e 64 | 73 20 74 68 65 20 73 79 |f second|s the sy|
|000061f0| 73 74 65 6d 20 77 69 6c | 6c 20 77 61 69 74 20 66 |stem wil|l wait f|
|00006200| 6f 72 20 74 68 65 20 69 | 6e 74 65 72 6e 61 6c 20 |or the i|nternal |
|00006210| 68 61 72 64 20 64 69 73 | 6b 20 74 6f 20 72 65 73 |hard dis|k to res|
|00006220| 70 6f 6e 64 20 28 49 6e | 73 69 64 65 20 4d 61 63 |pond (In|side Mac|
|00006230| 69 6e 74 6f 73 68 2c 20 | 6f 6c 75 56 6f 6c 75 6d |intosh, |oluVolum|
|00006240| 65 20 56 2c 20 70 61 67 | 65 20 20 33 35 36 29 2e |e V, pag|e 356).|
|00006250| 20 49 73 20 74 68 69 73 | 20 6f 6e 6c 79 20 66 6f | Is this| only fo|
|00006260| 72 20 61 20 53 43 53 49 | 20 64 65 76 69 63 65 20 |r a SCSI| device |
|00006270| 61 74 20 49 44 3d 30 20 | 6f 72 20 69 73 20 74 68 |at ID=0 |or is th|
|00006280| 69 73 20 74 68 65 20 64 | 65 76 69 63 65 20 73 70 |is the d|evice sp|
|00006290| 65 63 69 66 69 65 64 20 | 62 79 20 74 68 65 20 53 |ecified |by the S|
|000062a0| 65 74 44 65 66 61 75 6c | 74 53 74 61 72 74 75 70 |etDefaul|tStartup|
|000062b0| 20 63 61 6c 6c 3f 20 43 | 61 6e 20 49 20 61 73 73 | call? C|an I ass|
|000062c0| 75 6d 65 20 74 68 61 74 | 20 53 65 74 54 69 6d 65 |ume that| SetTime|
|000062d0| 6f 75 74 20 61 6e 64 20 | 53 65 74 44 65 66 61 75 |out and |SetDefau|
|000062e0| 6c 74 53 74 61 72 74 75 | 70 20 61 72 65 20 73 75 |ltStartu|p are su|
|000062f0| 70 70 6f 72 74 65 64 20 | 69 66 20 74 68 65 20 6d |pported |if the m|
|00006300| 61 63 68 69 6e 65 20 74 | 79 70 65 20 72 65 74 75 |achine t|ype retu|
|00006310| 72 6e 65 64 20 62 79 20 | 53 79 73 45 6e 76 69 72 |rned by |SysEnvir|
|00006320| 6f 6e 73 20 69 73 20 67 | 72 65 61 74 65 72 20 74 |ons is g|reater t|
|00006330| 68 61 6e 20 61 20 4d 61 | 63 69 6e 74 6f 73 68 20 |han a Ma|cintosh |
|00006340| 50 6c 75 73 3f 20 49 73 | 20 74 68 65 72 65 20 61 |Plus? Is| there a|
|00006350| 20 62 65 74 74 65 72 20 | 77 61 79 20 74 6f 20 64 | better |way to d|
|00006360| 65 74 65 72 6d 69 6e 65 | 20 69 66 20 74 68 65 73 |etermine| if thes|
|00006370| 65 20 63 61 6c 6c 73 20 | 61 72 65 20 73 75 70 70 |e calls |are supp|
|00006380| 6f 72 74 65 64 3f 0d 5f | 5f 5f 0d 53 65 74 54 69 |orted?._|__.SetTi|
|00006390| 6d 65 4f 75 74 20 69 73 | 20 66 6f 72 20 74 68 65 |meOut is| for the|
|000063a0| 20 69 6e 74 65 72 6e 61 | 6c 20 64 65 76 69 63 65 | interna|l device|
|000063b0| 2c 20 77 68 6f 73 65 20 | 49 44 20 6d 75 73 74 20 |, whose |ID must |
|000063c0| 62 65 20 7a 65 72 6f 2e | 0d 47 72 6f 77 61 62 6c |be zero.|.Growabl|
|000063d0| 65 20 4d 61 63 69 6e 74 | 6f 73 68 20 73 79 73 74 |e Macint|osh syst|
|000063e0| 65 6d 20 68 65 61 70 20 | 64 6f 65 73 20 6e 6f 74 |em heap |does not|
|000063f0| 20 61 66 66 65 63 74 20 | 73 74 61 72 74 75 70 20 | affect |startup |
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.